Skip to main content

Timeline for Noisy Iterated Prisoner's Dilemma

Current License: CC BY-SA 4.0

12 events
when toggle format what by license comment
May 9, 2018 at 14:31 history edited Hektor-Waartgard CC BY-SA 4.0
deleted 1665 characters in body
May 9, 2018 at 14:22 comment added Hektor-Waartgard Ah, I understood it as it was being flipped every turn. Then this strategy is not as clever as I thought. Back to the drawing table.
May 9, 2018 at 13:53 comment added isaacg Your use of state is fine. However, you are unconditionally accessing opponent[1], which will cause an error on the first move. Also, Christian Sievers is right: old items in opponent never change, they are either originally given flipped, or originally given unchanged, and they stay that way.
May 9, 2018 at 13:36 comment added Christian Sievers That won't work. After each turn, it is decided whether the current move is flipped or not (independently for the two players). That decission is then fixed. You will always see the same first move which may be flipped or not, but it won't change.
May 9, 2018 at 13:34 comment added Hektor-Waartgard @isaacg I have updated my answer with a new code. I do not have reputation enough to tell it to you in the question-comments. I am not certain that I am using the state variable correctly, I assume it is an empty list which I can append whatever I want to, correct?
May 9, 2018 at 13:19 history edited Hektor-Waartgard CC BY-SA 4.0
The last program did not perform well, here is a new one.
May 7, 2018 at 18:07 history edited Hektor-Waartgard CC BY-SA 4.0
added 44 characters in body
May 7, 2018 at 18:06 comment added Hektor-Waartgard Correct, I'll indent.
May 7, 2018 at 18:05 comment added isaacg I'm guessing everything from the elif onward should be indented once more?
May 7, 2018 at 18:02 comment added isaacg Welcome to the site! Unfortunately, your code doesn't work currently. You have an elif after an else. Could you fix it? Thanks
May 7, 2018 at 17:59 review First posts
May 7, 2018 at 18:00
May 7, 2018 at 17:58 history answered Hektor-Waartgard CC BY-SA 4.0