-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from emilio-zuniga/uci-search-integration
UCI & search integration
- Loading branch information
Showing
4 changed files
with
127 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,23 @@ | ||
use vampirc_uci::UciMove; | ||
|
||
use crate::{gamemanager::GameManager, movetable::{noarc::NoArc, MoveTable}}; | ||
use crate::{ | ||
gamemanager::GameManager, | ||
movetable::{noarc::NoArc, MoveTable}, | ||
}; | ||
|
||
pub struct Engine { | ||
pub tbl: NoArc<MoveTable>, | ||
pub move_history: Vec<UciMove>, | ||
pub board: GameManager, | ||
//pub set_new_game: bool, | ||
} | ||
|
||
impl Default for Engine { | ||
fn default() -> Self { | ||
Self { | ||
tbl: NoArc::new(MoveTable::default()), | ||
move_history: Vec::new(), | ||
board: GameManager::default(), | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters