fix: use default maturin python lib name

This commit is contained in:
Henri Bourcereau 2025-05-13 16:04:44 +02:00
parent 27fc08c47d
commit 4fd1f00af0
2 changed files with 6 additions and 4 deletions

View file

@ -1,6 +1,7 @@
import trictrac import store
# import trictrac
game = trictrac.TricTrac() game = store.TricTrac()
print(game.get_state()) # "Initial state" print(game.get_state()) # "Initial state"
moves = game.get_available_moves() moves = game.get_available_moves()

View file

@ -1,7 +1,8 @@
import gymnasium as gym import gymnasium as gym
import numpy as np import numpy as np
from gymnasium import spaces from gymnasium import spaces
import trictrac # module Rust exposé via PyO3 # import trictrac # module Rust exposé via PyO3
import store # module Rust exposé via PyO3
from typing import Dict, List, Tuple, Optional, Any, Union from typing import Dict, List, Tuple, Optional, Any, Union
class TricTracEnv(gym.Env): class TricTracEnv(gym.Env):
@ -13,7 +14,7 @@ class TricTracEnv(gym.Env):
super(TricTracEnv, self).__init__() super(TricTracEnv, self).__init__()
# Instancier le jeu # Instancier le jeu
self.game = trictrac.TricTrac() self.game = store.TricTrac()
# Stratégie de l'adversaire # Stratégie de l'adversaire
self.opponent_strategy = opponent_strategy self.opponent_strategy = opponent_strategy