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/mod.rs | |
parent | 54e72754d0fae2b2768b66c39c72e9afaba0cba8 (diff) | |
download | chessnost-8e7ac2814c4a92eba79f9c626ad14ac0b7bfef3f.tar.gz |
feat: add clock and time management to UCI
Diffstat (limited to 'src/board/mod.rs')
-rw-r--r-- | src/board/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/board/mod.rs b/src/board/mod.rs index 6fb8b93..95d470a 100644 --- a/src/board/mod.rs +++ b/src/board/mod.rs @@ -1,4 +1,4 @@ -use crate::{bitboard::{Bitboard, BitboardFns}, moves::{Move, MoveKind}, attacks::Attacks, square::Square, board::io::IO}; +use crate::{bitboard::{Bitboard, BitboardFns}, moves::{Move, MoveKind}, attacks::Attacks, square::Square, board::io::IO, clock::Clock}; use self::{zobrist::{ZobristSeed, Zobrist}, piece::Piece, color::Color}; pub mod io; @@ -24,6 +24,8 @@ pub struct Board { /// En passsant target square pub ep_target: Option<Square>, + pub clock: Clock, + // Computed values pub occupancy: Bitboard, /// Zobrist hash of the current position |