chessai
college code for ai playing chess in java
git clone https://9o.is/git/chessai.git
commit 67de6588727054163184eb4de4430fe4697f7e60 parent b4a8f820e71cb4dd2f4726f40c4ba21cdc4c5364 Author: Jul <jul@9o.is> Date: Mon, 3 Dec 2012 03:05:52 -0500 minor touches. Diffstat:
| M | src/chess/ChessBoard.java | | | 8 | +------- |
| M | src/chess/ChessCoordinate.java | | | 5 | ----- |
| M | src/chess/ChessDirection.java | | | 2 | +- |
| M | src/chess/ChessState.java | | | 2 | -- |
4 files changed, 2 insertions(+), 15 deletions(-)
diff --git a/src/chess/ChessBoard.java b/src/chess/ChessBoard.java @@ -1,13 +1,7 @@ package chess; -import chess.piece.*; - /** - * Created with IntelliJ IDEA. - * User: julio - * Date: 11/29/12 - * Time: 12:57 PM - * To change this template use File | Settings | File Templates. + * */ public class ChessBoard { private ChessState state; diff --git a/src/chess/ChessCoordinate.java b/src/chess/ChessCoordinate.java @@ -22,11 +22,6 @@ public class ChessCoordinate { this((char) (file-1+97), rank); // 97 = 'a' } - public void set(char x, int y) { - this.file = x; - this.rank = y-1; - } - public char getFile() { return file; } diff --git a/src/chess/ChessDirection.java b/src/chess/ChessDirection.java @@ -21,5 +21,5 @@ public enum ChessDirection { KNIGHT_FORWARD_LEFT, KNIGHT_FORWARD_RIGHT, KNIGHT_BACK_LEFT, - KNIGHT_BACK_RIGHT; + KNIGHT_BACK_RIGHT } diff --git a/src/chess/ChessState.java b/src/chess/ChessState.java @@ -1,7 +1,5 @@ package chess; -import chess.ChessPiece; - /** * Check */