diff options
author | eug-vs <eugene@eug-vs.xyz> | 2023-02-26 23:26:51 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2023-02-26 23:27:20 +0300 |
commit | 8e7ac2814c4a92eba79f9c626ad14ac0b7bfef3f (patch) | |
tree | da30e36423d5b1aa4aaaa2666b985e9674680850 /src/board/io.rs | |
parent | 54e72754d0fae2b2768b66c39c72e9afaba0cba8 (diff) | |
download | chessnost-8e7ac2814c4a92eba79f9c626ad14ac0b7bfef3f.tar.gz |
feat: add clock and time management to UCI
Diffstat (limited to 'src/board/io.rs')
-rw-r--r-- | src/board/io.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/board/io.rs b/src/board/io.rs index 67aa096..d27b856 100644 --- a/src/board/io.rs +++ b/src/board/io.rs @@ -1,4 +1,4 @@ -use crate::{bitboard::Bitboard, attacks::Attacks, moves::Move}; +use crate::{bitboard::Bitboard, attacks::Attacks, moves::Move, clock::Clock}; use super::{Board, Piece, zobrist::Zobrist}; const PIECE_CHARS: [&str; 12] = [ @@ -96,6 +96,7 @@ impl IO for Board { attacks: Attacks::new(), castling_rights: [[true; 2]; 2], // TODO: actualy parse from FEN ep_target: None, // TODO: parse from FEN + clock: Clock::default(), hash: 0, zobrist_seed: Board::seed(), }; |