open_spiel icon indicating copy to clipboard operation
open_spiel copied to clipboard

laser tag players do not act as commanded.

Open qmaai opened this issue 6 years ago • 7 comments

Hi I have been reading through laser_tag.cc, and open_spiel/open_spiel/integration_tests/playthroughs/laser_tag(horizon=20).txt.

Some of the agents' behaviors are strange. Here is one example where agent A fails to step right even when it is still within the grid even after doing so. There exist numerous similar problems in the afore-mentioned txt file. Would you kindly look into that? laser_tag(horizon=20).txt

qmaai avatar May 20 '20 16:05 qmaai

Hi Gary, took a look-- yeah, I agree... that appears to be a bug.

I will take a look, hopefully have it fixed by Monday's update.. but unfortunately can't guarantee any timeline for now, a bit busy with some paper submissions at the moment, but I'll try.

lanctot avatar May 20 '20 18:05 lanctot

Been a while since I've looked at this but it looks like there's a joint action of ["step right", "move forward"] for A and B respectively, then the chance node decides to apply B's action first (which it then does) but then A's action is never applied. I could maybe look into this this weekend.

alexminnaar avatar May 20 '20 19:05 alexminnaar

@lanctot @alexminnaar thank you for looking into this.

qmaai avatar May 20 '20 20:05 qmaai

Looks like the issue is on this line. The left step is there twice and one of them should be the right step. I created a PR https://github.com/deepmind/open_spiel/pull/227/ I'm not sure about the other problems you mentioned but this should at least cover the linked issue.

alexminnaar avatar May 23 '20 17:05 alexminnaar

Hi Alex. Yup I think that is it. All of the other cases that I have spotted so far are step-right related.

qmaai avatar May 23 '20 18:05 qmaai

Thanks for the quick fix @alexminnaar !

lanctot avatar May 25 '20 15:05 lanctot

Fixed by https://github.com/deepmind/open_spiel/pull/227 which was just merged. Closing.

lanctot avatar Jun 01 '20 13:06 lanctot