Whenever I run an Open Spiel environment with Ray, I always get tons of errors about the moves not being legal. I was wondering if there was anyway to apply action masking with an Open Spiel environment.
I ran the example included with ray: https://github.com/ray-project/ray/blob/master/rllib/examples/self_play_with_open_spiel.py
I kept getting this error:
(RolloutWorker pid=27106) OpenSpiel exception: /project/open_spiel/games/connect_four.cc:94 CellAt(kRows - 1, move) == CellState::kEmpty (RolloutWorker pid=27106) CellAt(kRows - 1, move) = X, CellState::kEmpty = Empty