Skip to main content
17 events
when toggle format what by license comment
Sep 26, 2019 at 10:21 history edited jaaq CC BY-SA 4.0
deleted 368 characters in body
Sep 23, 2019 at 8:04 comment added jaaq @PurpleP thanks you 2. I fixed both errors, one with the "safe" version of picking whichever of \n or p is in legal_actions to pass on a duke and the error with the assassination. I forgot to assign the result of random.choice between block and challenge to the action variable...
Sep 23, 2019 at 8:01 history edited jaaq CC BY-SA 4.0
added 18 characters in body
Sep 22, 2019 at 16:57 comment added Purple P @jaaq I fixed the bug that Brilliand mentions and added Statistician to the leaderboard. When your entries are Assassinated with one card remaining, they forfeit by writing \n instead of the card they wish to give up. In such a situation it's better to fight back with a block or challenge. Had Gambler won the 5 games it forfeited like this, it would have taken first place.
Sep 22, 2019 at 9:18 comment added Brilliand @jaaq It's still forfeiting if its opponent attempts Foreign Aid and it doesn't have a Duke; it needs to reply to that with a pass, not an end-of-turn.
Sep 21, 2019 at 16:44 comment added jaaq @PurpleP Thanks! Fixed that case and added the statistician, which has very similar code so shouldn't produce any new bugs. He won't sample from the distribution of actions but rather chooses an action that he attributes the highest successrate to.
Sep 21, 2019 at 16:40 history edited jaaq CC BY-SA 4.0
added blocking foreign aid without duke and statistician
Sep 21, 2019 at 15:58 comment added Purple P Good news, Gambler's exchanges work on my machine! It still crashes if its opponent attempts Foreign Aid and it doesn't have a Duke, but it has been added to the leaderboards.
Sep 21, 2019 at 13:28 comment added jaaq @PurpleP I already edited my post. I played a frew rounds against myself, I never throw the unhandled exception but loose because of illegal move every time I exchange. I tried different conversions on the print or directly calling sys write on the stdout buffer but the arbiter always gets b'card1card2' instead of 'card1card2'
Sep 20, 2019 at 15:17 comment added Purple P May I see your latest attempt? I'll see what I can do.
Sep 20, 2019 at 9:46 history edited jaaq CC BY-SA 4.0
added 640 characters in body
Sep 20, 2019 at 9:11 comment added jaaq @PurpleP I can't get exchanges to work, for some reason I always print the byte identifier b'' as well, wich leads to the arbiter recognizing it as an illegal move...
Sep 20, 2019 at 8:38 history edited jaaq CC BY-SA 4.0
added 732 characters in body
Sep 19, 2019 at 17:00 comment added jaaq was able to fix that error. sorry, I posted it in kind of a hurry. I'll make sure to test it with your arbiter until tomorrow, but the one obvious bug has been fixed. sorry again.
Sep 19, 2019 at 16:59 history edited jaaq CC BY-SA 4.0
added 38 characters in body
Sep 19, 2019 at 16:03 comment added Purple P This program crashes on an empty file when it goes first. When it goes second, it crashes with a message like: Traceback (most recent call last): File "gambler.py", line 94, in <module> otherhand = guess_opponents_hand() File "gambler.py", line 61, in guess_opponents_hand card_counts[card_give_up.index(card_1)] -= 1 ValueError: ['_'] is not in list.
Sep 19, 2019 at 13:30 history answered jaaq CC BY-SA 4.0