googletimes
Active Member
- Joined
- Jan 24, 2007
- Sythe Gold
- 0
- Messages
- 245
I'm having some trouble figuring out how to code this java program. I'm a java newbie, so sorry if I may come off as extremely stupid if the answer is staring in my face.
The aim of the program is to place only one checkers piece on a random black square on the checkers board. Then the checkers piece has to move to any adjacent black square at random.
I've figured out how to code the checkers board but I don't understand how to get the checkers piece on a random black square. Any help would be appreciated.
EDIT: Would I have to use Arrays? Because I haven't learned them yet..
The aim of the program is to place only one checkers piece on a random black square on the checkers board. Then the checkers piece has to move to any adjacent black square at random.
I've figured out how to code the checkers board but I don't understand how to get the checkers piece on a random black square. Any help would be appreciated.
EDIT: Would I have to use Arrays? Because I haven't learned them yet..









