hoomun doesn't have a personal statement currently.
Gender Not Set
OS: Windows XP
Hardware Info: p4 2.8 256mb graphics card
Gender: No Information
CPU: Intel Pentium 4
Belly button size: No Information
Browser: No Information
Connection speed: No Information
OS (secondary): No Information
Joined: 5-April 04
Profile Views: 88*
Last Seen: 3rd September 2004 - 08:52 AM
Local Time: May 25 2013, 11:49 AM
7 posts (0 per day)
* Profile views updated each hour
5 Apr 2004
hi i am doing this assigment and i'm stuck!!!! :'(
this is the problem but i'm stuck at the begining!!!! :'(
Random Walk. Simulate the walk of a child lost in a square grid of corridors. Draw a
grid of 9 corridors horizontally and 9 corridors vertically. Place a simulated child,
denoted by a star, in the middle of the grid. Have the simulated child randomly pick a direction (up, down, left or right on the screen) and move one corridor in the chosen direction and redraw the star. Have the observer (that is the keyboard operator) choose how many times the child will move, up to a limit of 100. After each move the program should redraw the grid showing the child in the new position. When all the moves are complete, display the distance the child has covered (eg. 4 up, 5 right), below the last grid.
now can some one please please explain what this means!!
note:i have to use only for-loops statements
all i could do was to right this code it only dose the first row though!!!
can you tell me what i should write and do after this!
void main ()
for (i=1; i<=9; i++)
for( i=1; i<=9; i++)
hoomun has no visitors to display.
Other users have left no comments for hoomun.
There are no friends to display.
|Lo-Fi Version||Time is now: 25th May 2013 - 11:49 AM|