make game non-deterministic
xiongchiamiov opened this issue · comments
War is naturally deterministic, which means that we end up with a relatively high probability of infinite games. In addition to making the game even more boring than it already is, it makes the auto-play feature more than it should (it shouldn't ever).
In a physical game, randomness is introduced in the order in which played cards are returned to the winner's deck.
shuffle played cards before adding them to the winner's deck
This prevents "stuck" games, where no one will ever win. Closed by a0fb16c.