chessai

college code for ai playing chess in java

git clone https://9o.is/git/chessai.git

commit 478a08a043d8eac03619be7e39621201cec35492
parent 93b801f6c308ecc5e6ca2cb5e2dac66ebb7c9bb1
Author: Jul <jul@9o.is>
Date:   Fri,  7 Dec 2012 17:27:10 -0500

Modified logic to end game.

Diffstat:
Msrc/main/java/chess/ChessGame.java | 7++-----
1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/main/java/chess/ChessGame.java b/src/main/java/chess/ChessGame.java @@ -48,8 +48,8 @@ public class ChessGame { status = server.poll(); } - // TODO minmax for every opponents possible move - // TODO concurrently hopefully? + if(isGameover(status,board,player)) + playing = false; // OPPONENT's turn while(!status.isReady()) { @@ -70,9 +70,6 @@ public class ChessGame { } } - // TODO if generated minmax table during opponent's move, - // TODO choose move the opponent chose and continue from there - printBoard(status, board); status = server.poll();