arrays and basic computer graphics
By kb_mag
@kb_mag (1)
South Africa
October 20, 2006 8:29am CST
1)To generate a 2D 10x10 grid that consists of "covered" tiles.The "covered" cell hides DIFFERENT types of objects:
a.Circles that have varying points with different colors(red-5,green-3,blue-1)
b.Triangles that act as 'Bombs'.
2)It should be able to scroll the grid using arrow keys .As I move through the grid to anew cell,the tile should reveal the object behind the tile.
3)If the tile reveals a 'Bomb' at any point,all tiles must be revealed,and the program should exit.if the tile reveals a circle,depening on the the type of circle revealed,a counter should be used to keep track of how many 'circles'are uncovered.On exiting the program either through finding a 'bomb'or on pressing 'Esc',the total scored must be displayed.
4)Scrolling ashould be done using the arrow keys.The first block must not be uncovered till it gets moved to again.
5)Esc should terminate the program at any point
No responses