core_rust/core/game/game_variables.rs
1/// Per-step environment feedback returned by the simulator.
2#[derive(Debug, Clone, Copy)]
3pub struct GameVars {
4 pub turn: i32,
5 pub score: f32,
6 pub done: bool,
7}
8
9impl GameVars {
10 /// Convenience constructor.
11 pub fn new(turn: i32, score: f32, done: bool) -> Self {
12 GameVars { turn, score, done }
13 }
14}