Open main menu

lensowiki β

Changes

Computer Science/61b

395 bytes removed, 02:48, 29 October 2006
Methods: correction – these methods aren't in MachinePlayer...
====Methods====
/* Andrew */ // generates an array As I mentioned to Jordan over e-mail, all of Gameboards the methods and constructors in MachinePlayer class become pretty trivial after we write all of all the possible moves from methods in the current Gameboard g for a given playerclass. returns an array of Gameboards Object[][] generateMovesI (Gameboard g, int colorPaul)---- /* Paul */ // evaluates have already done all possible moves to of them, so assuming everything else works as planned, we should be generated from the '''this''' board using the minimax algorithm and alpha-beta pruningok. // 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)
1,277
edits