Skip to content

Commit

Permalink
Rename OngoingState to OngoingPhase
Browse files Browse the repository at this point in the history
  • Loading branch information
carsten-wenderdel committed Oct 14, 2023
1 parent ae0d589 commit 2ec511d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/coach/src/position_finder.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use engine::dice::{DiceGen, FastrandDice};
use engine::evaluator::Evaluator;
use engine::position::GameState::Ongoing;
use engine::position::OngoingState::Race;
use engine::position::OngoingPhase::Race;
use engine::position::{GamePhase, Position, STARTING};
use engine::probabilities::Probabilities;
use std::collections::HashSet;
Expand Down
6 changes: 3 additions & 3 deletions crates/engine/src/position.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use base64::{engine::general_purpose, Engine as _};
use crate::dice::Dice;
use crate::position::GameResult::*;
use crate::position::GameState::*;
use crate::position::OngoingState::{Contact, Race};
use crate::position::OngoingPhase::{Contact, Race};
use std::collections::HashMap;
use std::fmt;
use std::fmt::Formatter;
Expand Down Expand Up @@ -54,14 +54,14 @@ pub enum GameState {
}

#[derive(Debug, PartialEq)]
pub enum OngoingState {
pub enum OngoingPhase {
Contact,
Race,
}

#[derive(Debug, PartialEq)]
pub enum GamePhase {
Ongoing(OngoingState),
Ongoing(OngoingPhase),
GameOver(GameResult),
}

Expand Down

0 comments on commit 2ec511d

Please sign in to comment.