Version 0.1
=========== 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...
This commit is contained in:
36
SuicideChess/src/suicideChess/SuicideChess.java
Normal file
36
SuicideChess/src/suicideChess/SuicideChess.java
Normal file
@ -0,0 +1,36 @@
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user