Skip to content

Draft: setup_round gets called in start_game

bayadi requested to merge Bugfix-common-test into main

@webesimo I tried fixing the IsAllowedToPlayNow test and i think the problem problem is that 1. setup_round is called in start_game already (i removed it in the test now) and more importantly

const auto &current_player = game_state->get_players()[0]; (line 943 in test_game_state.cpp, idk how to link it here)

is not true. In the start_game function no current player gets set and in the constructor of the GameState the current_player_id is set to -1. I didn't wanna interfere with you code too much because i dont fully understand it so i didn't change it yet.

Also about the package common, i think when a player places a bet it does not update the current_player_id so the game doesn't progress, lets look at it together if you're free tomorrow.

Merge request reports

Loading