Skip to content

Commit

Permalink
fix: chomp is normal??
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoDog896 committed Sep 25, 2024
1 parent 50aac7c commit 06dee36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/games/src/chomp/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ impl Chomp {
#[derive(Args, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord, Clone)]
pub struct ChompArgs {
/// The width of the game
#[arg(short, long, default_value_t = 6)]
#[arg(long, default_value_t = 6)]
width: usize,
/// The height of the game
#[arg(short, long, default_value_t = 4)]
#[arg(long, default_value_t = 4)]
height: usize,
/// Chomp moves, ordered as x1-y1 x2-y2 ...
#[arg(value_parser = clap::value_parser!(ChompMove))]
Expand Down Expand Up @@ -83,7 +83,7 @@ impl Game for Chomp {
type Player = ImpartialPlayer;
type MoveError = ChompMoveError;

const STATE_TYPE: Option<StateType> = Some(StateType::Misere);
const STATE_TYPE: Option<StateType> = Some(StateType::Normal);

fn max_moves(&self) -> Option<usize> {
Some(self.width * self.height)
Expand Down

0 comments on commit 06dee36

Please sign in to comment.