trolley813 / OpenFool

Open source implementation of a Fool (Durak) card game.
35 stars 6 forks source link

Non-team mode freezes on draw #42

Open fegeleiner opened 5 years ago

fegeleiner commented 5 years ago

In non-team mode, successfully defending the last attack causes the game to freeze.

trolley813 commented 5 years ago

Under what circumstances does this happen? Please, give more detailed explanation (to allow the issue be easily reproduced).

fegeleiner commented 5 years ago

Was observed in 3 player mode for sure. Say last 2 players have 1 card each, and the attack is beaten (therefore should be a draw). Draw is correctly handled in 4-player team mode if that helps.

0.2.9 on Android from F-Droid.

ildar commented 5 years ago

screenshot_20181004-200745

ildar commented 5 years ago

The end of the game. Two players left with even number of cards. One attacks, another successfully defends. Game hangs.

trolley813 commented 5 years ago

Thanks! Will start working on it.

trolley813 commented 5 years ago

Confirmed. Starting investigation (but it's hard to reproduce since the games rarely end in a draw).

fegeleiner commented 5 years ago

Confirmed. Starting investigation (but it's hard to reproduce since the games rarely end in a draw).

Surely for you it would be easier to initialize the game with the required state?

trolley813 commented 5 years ago

Probably yes, but a kind of 'debug mode' has to be added for it. Thanks for suggestion, it would be a useful feature.