ichabod801 / t_games

A collection of command-line interface games written in Python.
GNU General Public License v3.0
20 stars 4 forks source link

Prisoner's Dilemma Pavlov bot not working right #564

Closed ichabod801 closed 4 years ago

ichabod801 commented 4 years ago

It should only switch moves on cooperate-defect or defect-defect, but it switched from cooperate to defect on me after two rounds of cooperate-cooperate. Child of issue #511: Play Test Prisoner's Dilemma.

ichabod801 commented 4 years ago

When playing alone it works fine.

ichabod801 commented 4 years ago

The problem is that it has one next_move attribute, so it is sharing that across all opponents.

ichabod801 commented 4 years ago

It's working now, alone and with other bots in play. Note that I need to test all of the bots in groups, to make sure there are no cross interactions like this one.