Results 1 to 2 of 2
Like Tree1Likes
  • 1 Post By Junky

Thread: Guys help please!!!

  1. #1
    Join Date
    Oct 2013
    Rep Power

    Default Guys help please!!!

    Hey! I have a question for my comp science class:

    Using a 2 dimensional array create a path from array [0][0] 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 [0][0]. 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.

  2. #2
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Rep Power

    Default 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.
    gimbal2 likes this.

Similar Threads

  1. i really need ur help guys.
    By akocnivek in forum New To Java
    Replies: 10
    Last Post: 10-19-2012, 10:35 AM
  2. Hi guys
    By malique in forum Introductions
    Replies: 2
    Last Post: 03-02-2010, 12:51 PM
  3. Hey guys!
    By Syntax in forum Introductions
    Replies: 0
    Last Post: 01-15-2010, 08:58 PM
  4. hi guys
    By jackson787 in forum Reviews / Advertising
    Replies: 0
    Last Post: 01-12-2010, 06:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts