Results 1 to 2 of 2
- 10-30-2013, 04:46 AM #1Member
- Join Date
- Oct 2013
- Rep Power
Guys help please!!!
Hey! I have a question for my comp science class:
Using a 2 dimensional array create a path from array  to the opposite corner. Repeatedly get a random number representing one of 8 possible moves. A legal move is one that moves forward, and does not run into the "edge" of the array. If the move is illegal the process starts over with location . Going forward is defined as the sum of the two array indexes either increasing or staying the same. Count the number of times it takes to create a legal a legal path from beginning to the end, and print the array to the screen showing the path that was successful. Allow the client to repeatedly play the game and choose the size of the two dimensional array.
- 10-30-2013, 06:04 AM #2
Re: Guys help please!!!
Since you are a terrific student you should have no problems doing your own work.
Otherwise make an attempt at writing the code. If you get stuck post your code here using code tags, copy and paste exact error messages and ask a specific question.
Do not dump your homework on us and expect someone to do it for you.
- By akocnivek in forum New To JavaReplies: 10Last Post: 10-19-2012, 10:35 AM
- By malique in forum IntroductionsReplies: 2Last Post: 03-02-2010, 01:51 PM
- By Syntax in forum IntroductionsReplies: 0Last Post: 01-15-2010, 09:58 PM
- By jackson787 in forum Reviews / AdvertisingReplies: 0Last Post: 01-12-2010, 07:19 AM