1,277
edits
Changes
→Additional methods in Gameboard class: reflect changes to generateMoves
This is the real meat of the project.
/* Andrew */
// generates an a 2-d array of Gameboards of all the possible moves from the current Gameboard g and resulting gameboards for a given player. returns color // @return[0] is an array of Gameboards(Gameboard[x]) // @return[1] is an array of Moves corresponding to each board in return[0] (Move[x]) // thus the board after performing g.performMove(color, return[1][i]) is return[0][i]
Object[][] generateMoves(Gameboard g, int color)
----