diff options
| author | Dylan <boss@tehbox.org> | 2026-10-19 00:37:17 +1300 |
|---|---|---|
| committer | Dylan <boss@tehbox.org> | 2026-10-19 00:38:55 +1300 |
| commit | 15bdaa5d550115d97be3f89126c924b49c10a70f (patch) | |
| tree | 079fc3554598ae92a7b588b34ea7e787629133b9 /src/main.rs | |
| download | tigers-and-sheep-15bdaa5d550115d97be3f89126c924b49c10a70f.tar.gz tigers-and-sheep-15bdaa5d550115d97be3f89126c924b49c10a70f.zip | |
feat: Initial commit
What works:
- Minimax search
- With a simple player claude designed
- Manual player
- Move generation
- Board display
What needs improvement:
- Manual player
- Game coordinator
- Draw checking
- Nix setup
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..981d3dd --- /dev/null +++ b/src/main.rs @@ -0,0 +1,18 @@ +use std::time::Duration; + +use crate::{claude_player::ClaudePlayer, game::GameHandler, local_player::LocalPlayer}; + +mod board; +mod player; +mod game; +#[path = "local-player.rs"] +mod local_player; +#[path = "claude-player.rs"] +mod claude_player; + +fn main() { + let mut game = GameHandler::default(); + // I play sheep, claude plays tiger + let winner = game.play_game(&mut LocalPlayer, &mut ClaudePlayer::new(Duration::from_secs(2))); + println!("{winner:?} wins!"); +} |
