fuckulated movegenerator into a good coregenerator
Need to test all edge cases for new position after move (castle/en passant/promotion). En passant crashes, likely easy fix. castle/promotion new position untested. Yoda: A feature branch absolutely necessary was. Me: With that Truth I agree.
This commit is contained in:
11
src/piece.c
11
src/piece.c
@@ -60,15 +60,6 @@ void piece_pool_stats()
|
||||
pool_stats(pieces_pool);
|
||||
}
|
||||
|
||||
static eval_t pieces_values[] = {
|
||||
[PAWN] = PAWN_VALUE,
|
||||
[KNIGHT] = KNIGHT_VALUE,
|
||||
[BISHOP] = BISHOP_VALUE,
|
||||
[ROOK] = ROOK_VALUE,
|
||||
[QUEEN] = QUEEN_VALUE,
|
||||
[KING] = KING_VALUE
|
||||
};
|
||||
|
||||
piece_list_t *piece_add(pos_t *pos, piece_t piece, square_t square)
|
||||
{
|
||||
piece_list_t *new;
|
||||
@@ -85,7 +76,7 @@ piece_list_t *piece_add(pos_t *pos, piece_t piece, square_t square)
|
||||
new->piece = piece;
|
||||
new->square = square;
|
||||
new->castle = 0;
|
||||
new-> value = pieces_values[PIECE(piece)];
|
||||
new-> value = piece_details[PIECE(piece)].value;
|
||||
}
|
||||
|
||||
return new;
|
||||
|
Reference in New Issue
Block a user