not yet burnrl_big
This commit is contained in:
parent
c0da21dfec
commit
522f7470b2
2 changed files with 5 additions and 5 deletions
|
|
@ -165,8 +165,7 @@ impl Environment for TrictracEnvironment {
|
|||
let trictrac_action = Self::convert_action(action);
|
||||
|
||||
let mut reward = 0.0;
|
||||
let mut is_rollpoint = false;
|
||||
let mut terminated = false;
|
||||
let is_rollpoint;
|
||||
|
||||
// Exécuter l'action si c'est le tour de l'agent DQN
|
||||
if self.game.active_player_id == self.active_player_id {
|
||||
|
|
@ -381,7 +380,7 @@ impl TrictracEnvironment {
|
|||
TurnStage::RollWaiting => {
|
||||
let mut rng = thread_rng();
|
||||
let dice_values = (rng.gen_range(1..=6), rng.gen_range(1..=6));
|
||||
calculate_points = true;
|
||||
// calculate_points = true; // comment to replicate burnrl_before
|
||||
GameEvent::RollResult {
|
||||
player_id: self.opponent_id,
|
||||
dice: store::Dice {
|
||||
|
|
@ -390,6 +389,7 @@ impl TrictracEnvironment {
|
|||
}
|
||||
}
|
||||
TurnStage::MarkPoints => {
|
||||
panic!("in play_opponent_if_needed > TurnStage::MarkPoints");
|
||||
let dice_roll_count = self
|
||||
.game
|
||||
.players
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue