Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   The Lounge (http://www.alice.org/community/forumdisplay.php?f=4)
-   -   Assignment 6 (http://www.alice.org/community/showthread.php?t=11701)

Nita 03-23-2017 05:44 PM

Assignment 6
 
Hi,

So I am currently on assignment 6, which is to create an Alice program in which a character sings "99 Bottles of Pop". I'm supposed to use the least amount of lines possible. But I'm really having issues.

[url]http://www.alice.org/community/showthread.php?t=10547&highlight=song[/url]

I followed the steps to the best of my ability on the page I linked, and I am still not getting it.

Help?

chickentree 03-24-2017 12:05 PM

[QUOTE=Nita;57523]Hi,

So I am currently on assignment 6, which is to create an Alice program in which a character sings "99 Bottles of Pop". I'm supposed to use the least amount of lines possible. But I'm really having issues.

[url]http://www.alice.org/community/showthread.php?t=10547&highlight=song[/url]

I followed the steps to the best of my ability on the page I linked, and I am still not getting it.

Help?[/QUOTE]

Can you provide your movie so far, I need to see what you are trying to do in order to help.
In general you can use The "Loop" instruction changing the values to count from 99 down to 0. The index will then be the bottle count. Or you could create your own index value and using the "While" instruction count the index down to 0 testing its value each time through the while.
As far as the least amount of lines. Don't worry about it, get the basic problem working and then see how you can improve it.

Mark

MrMoke 03-25-2017 02:35 PM

Yeah- Assuming the need for a Loop or While is needed, I could get it in four or five lines inside the loop using the standard four lines for the lyrics.
5) A While Loop that counts down is easier.
4) A Standard Loop is shorter, but requires more complicated commands.


All times are GMT -5. The time now is 06:33 AM.

Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.