Beispiel #1
0
 public void Reset()
 {
     WhitePawns                = 0;
     WhiteKnights              = 0;
     WhiteBishops              = 0;
     WhiteRooks                = 0;
     WhiteQueens               = 0;
     WhiteKing                 = 0;
     OccupancyWhite            = 0;
     BlackPawns                = 0;
     BlackKnights              = 0;
     BlackBishops              = 0;
     BlackRooks                = 0;
     BlackQueens               = 0;
     BlackKing                 = 0;
     OccupancyBlack            = 0;
     Occupancy                 = 0;
     PinnedPieces              = 0;
     WhiteMove                 = true;
     Castling                  = 0;
     EnPassantSquare           = Square.Illegal;
     PlySinceCaptureOrPawnMove = 0;
     FullMoveNumber            = 0;
     KingInCheck               = false;
     CurrentMoveIndex          = 0;
     MoveIndex                 = 0;
     MoveGenerationStage       = MoveGenerationStage.BestMove;
     PiecesSquaresKey          = 0;
     Key         = 0;
     StaticScore = -Engine.StaticScore.Max;
     PlayedMove  = Move.Null;
 }
Beispiel #2
0
 public void Reset()
 {
     for (var piece = Piece.WhitePawn; piece <= Piece.BlackKing; piece++)
     {
         PieceBitboards[(int)piece] = 0;
     }
     ColorOccupancy[(int)Color.White] = 0;
     ColorOccupancy[(int)Color.Black] = 0;
     Occupancy                 = 0;
     PinnedPieces              = 0;
     ColorToMove               = Color.White;
     Castling                  = 0;
     EnPassantSquare           = Square.Illegal;
     PlySinceCaptureOrPawnMove = 0;
     FullMoveNumber            = 0;
     KingInCheck               = false;
     CurrentMoveIndex          = 0;
     MoveIndex                 = 0;
     MoveGenerationStage       = MoveGenerationStage.BestMove;
     PiecesSquaresKey          = 0;
     Key         = 0;
     StaticScore = 0;
     PlayedMove  = Move.Null;
 }
Beispiel #3
0
 public void PrepareMoveGeneration()
 {
     CurrentMoveIndex    = 0;
     MoveIndex           = 0;
     MoveGenerationStage = MoveGenerationStage.BestMove;
 }