=========== This is a first version where it is possible to play in console. Rules are not implemented and program crashes when moving a piece that does not exit or when trying to capture our own pieces...
37 lines
821 B
Java
37 lines
821 B
Java
package suicideChess;
|
|
|
|
import tests.TestMoves;
|
|
|
|
/**
|
|
* @author djib
|
|
*
|
|
* Main File
|
|
*
|
|
* $LastChangedDate$
|
|
* $LastChangedRevision$
|
|
* $LastChangedBy$
|
|
*/
|
|
|
|
public class SuicideChess {
|
|
|
|
/**
|
|
* Those flags are used to perform extra checks during the debugging of the
|
|
* program. They may be safely all set to false once the program is stable.
|
|
* It should improve performance a lot.
|
|
*/
|
|
//does BitBoard.class removePiece function checks if removing piece is legal ?
|
|
public static final boolean BITBOARD_REMOVEPIECE_CHECK_REMOVE = true;
|
|
//does Square.class checks if the strings are valid (is "z9" a valid square ?
|
|
public static final boolean SQUARE_CHECK_INVALID = true;
|
|
|
|
|
|
|
|
/*****************
|
|
* MAIN FUNCTION *
|
|
*****************/
|
|
public static void main(String[] args) {
|
|
TestMoves.main(args);
|
|
}
|
|
|
|
}
|