Open main menu

lensowiki β

Changes

Computer Science/61b

758 bytes added, 02:49, 29 October 2006
Gameboard & chips ADT: move methods to appropriate heading
// returns the y coord of the chip
int getY()
 
===Additional methods in Gameboard class===
This is the real meat of the project.
/* Andrew */
// generates an array of Gameboards of all the possible moves from the current Gameboard g for a given player. returns an array of Gameboards
Object[][] generateMoves(Gameboard g, int color)
----
/* Paul */
// evaluates all possible moves to be generated from the '''this''' board using the minimax algorithm and alpha-beta pruning.
// continues searching until it reaches '''depth''' or a win, whichever comes first
Move evalTree(int color, int depth)
----
/* Jordan */
// evaluates the given network for a winning color
// returns a probability of winning if there is no win
// returns 999 if WHITE wins, -999 if BLACK wins
int winner(Gameboard g)
===Changes to MachinePlayer class===
1,277
edits