Results 1 to 2 of 2
  1. #1
    linc186 is offline Member
    Join Date
    Mar 2011
    Posts
    8
    Rep Power
    0

    Default Board Game arrays?

    Hello! I'm writing a small board game. I have two calls to the random method that both generate a random number between 1 and six to simulate two dice. The dice are added together into an int called totalmove. Now, I have an array that starts at [0]. When I roll the dice, I want it to move through the array like one would in a board game. So, it would start at zero, and then if I roll, say six, it moves six spaces through the array and then prints the space I'm at. Any help would be appreciated. Thanks!

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

Similar Threads

  1. Developing an Hex-board strategy game
    By abegade in forum Java 2D
    Replies: 8
    Last Post: 05-03-2011, 11:16 AM
  2. Help with JAVA board game
    By corky1501 in forum New To Java
    Replies: 5
    Last Post: 02-09-2011, 03:18 AM
  3. need help making a game board
    By Don k in forum New To Java
    Replies: 2
    Last Post: 04-30-2010, 12:09 AM
  4. game board design
    By tomitu in forum New To Java
    Replies: 12
    Last Post: 02-27-2010, 05:31 PM
  5. Programming a Board Game
    By makanti in forum New To Java
    Replies: 7
    Last Post: 03-10-2009, 02:32 AM

Tags for this Thread

Posting Permissions

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