Skip to content

Commit

Permalink
Add symmetries and hashing to traffic lights
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasmarsh committed Feb 27, 2024
1 parent 248e679 commit dd1576a
Show file tree
Hide file tree
Showing 7 changed files with 390 additions and 252 deletions.
4 changes: 2 additions & 2 deletions demo/hyper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ const EXPAND_THRESHOLD: u32 = 1;
const VERBOSE: bool = false;
const MAX_TIME_SECS: u64 = 0;

use mcts::games::ttt_traffic_lights;
use mcts::games::traffic_lights;

type G = ttt_traffic_lights::TttTrafficLights;
type G = traffic_lights::TrafficLights;

type TS<S> = TreeSearch<G, S>;

Expand Down
4 changes: 2 additions & 2 deletions demo/playground.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ type NimMCTS = TreeSearch<Nim, util::Ucb1>;
type TttMCTS = TreeSearch<TicTacToe, util::Ucb1>;

fn traffic_lights() {
use mcts::games::ttt_traffic_lights::TttTrafficLights;
use mcts::games::traffic_lights::TrafficLights;

type TS = TreeSearch<TttTrafficLights, util::Ucb1GraveMast>;
type TS = TreeSearch<TrafficLights, util::Ucb1GraveMast>;
let ts = TS::default()
.config(
SearchConfig::default()
Expand Down
2 changes: 1 addition & 1 deletion src/games/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ pub mod knightthrough;
pub mod nim;
pub mod null;
pub mod shibumi;
pub mod traffic_lights;
pub mod ttt;
pub mod ttt_traffic_lights;
pub mod unit;

#[cfg(test)]
Expand Down
Loading

0 comments on commit dd1576a

Please sign in to comment.