Skip to content

Commit

Permalink
chore: on the double
Browse files Browse the repository at this point in the history
╔══════════════════════════════════════════════════════════╗
║    Name               Elo Error   Wins Loss Draw   Total ║
╠══════════════════════════════════════════════════════════╣
║  1. Mexx              -198  100     10   34    1      45 ║
║  2. MexxMonty         +198  100     34   10    1      45 ║
╚══════════════════════════════════════════════════════════╝
  • Loading branch information
raklaptudirm committed Jun 5, 2024
1 parent 4578e25 commit a0bc5d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mcts/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub struct Tree {
impl Tree {
pub fn new(position: ataxx::Position) -> Tree {
let policy = policy::monty;
let simulator = simulate::material_count;
let simulator = simulate::monty;

let mut root = Node::new(position, -1);
root.expand(policy);
Expand Down
2 changes: 1 addition & 1 deletion src/mcts/simulate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub fn material_count(position: &ataxx::Position) -> f64 {
1.0 / (1.0 + f64::exp(-eval / 400.0))
}

pub fn monty_network(position: &ataxx::Position) -> f64 {
pub fn monty(position: &ataxx::Position) -> f64 {
1.0 / (1.0 + (-(NETS.0.eval(position) as f64) / 400.0).exp())
}

Expand Down

0 comments on commit a0bc5d3

Please sign in to comment.