roofy
12-06-2006, 03:25 AM
Hi there all, its me again, the pain in the neck :)
Our final project is coming up and I thought of the game called Memory. The object of the game is there will be 16 cards in a 4 cards across and 4 cards down giving me a 4x4 col/row table. The user will click on 2 different cards one at a time, and if there is a match between the 2 clicked on cards then the matched cards will be moved to the collection pile. When the user has collected all 8 pairs then the user wins.
Now the easist way I could think of doing this would be to build a nested array. So I wanted to know if it is possible to create nested array's in Alice. I know you can do it in standard C, but I have the faintest idea how I would do this in Alice. However, if I can not create nested array's then how would I go about building a 4x4 col/row setup?
Our final project is coming up and I thought of the game called Memory. The object of the game is there will be 16 cards in a 4 cards across and 4 cards down giving me a 4x4 col/row table. The user will click on 2 different cards one at a time, and if there is a match between the 2 clicked on cards then the matched cards will be moved to the collection pile. When the user has collected all 8 pairs then the user wins.
Now the easist way I could think of doing this would be to build a nested array. So I wanted to know if it is possible to create nested array's in Alice. I know you can do it in standard C, but I have the faintest idea how I would do this in Alice. However, if I can not create nested array's then how would I go about building a 4x4 col/row setup?