Changes

Jump to: navigation, search

Computer Science/61b

165 bytes added, 20:16, 29 October 2006
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)
----
1,277
edits

Navigation menu