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

Problem with Ten Thousand clear-combo option #491

Closed ichabod801 closed 4 years ago

ichabod801 commented 4 years ago

I was playing 10k with the gonzo option group, which includes the clear-combo option. One of the bots got stuck on an endless cycle trying to clear a combo. However, even if you roll two combos at once, you only have a 91% chance of matching (2 / 3 ** 6 = 0.08779), so it should end eventually.

Looking at the results, they rolled 5x6, 2x3/6x3, and 1x3/3x3, all requiring rerolls for a match. That could only be the case with three numbers to match, but even then you have a 98.5% chance of not matching.

I hadn't seen this before, so this may be an interaction with another option in the gonzo group.

ichabod801 commented 4 years ago

Print lining found the problem: a die is being put into self.last_combo, rather than it's value. Then the die always matches itself. As with last time it was six dice to roll, so that may be related to the issue.