ichabod801 / t_games

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

Infinite Loop at the end of Craps #536

Closed ichabod801 closed 4 years ago

ichabod801 commented 4 years ago

This happened when everyone lost their last bit of money at the last moment. So no one had any money. There may have been some bets left, but that's because the OverSemiPoliteBot had a bunch of odds bets that didn't seem tied to any other bets. Child of issue #500.

ichabod801 commented 4 years ago

I wrote code to fix this, but had trouble testing it. Mainly because a 7 kills all bets. I think this was not a real bug, but rather a side effect of Issue #537, where the bot had extra odds bets floating around. Those would not get taken out by a 7, leading to the infinite loop.