catch games where specified draw pile is not feasible
This commit is contained in:
parent
8f6d8c68fe
commit
7eb1364e36
1 changed files with 4 additions and 0 deletions
|
@ -24,6 +24,10 @@ namespace Hanabi {
|
||||||
}
|
}
|
||||||
|
|
||||||
game.forward_until(turn, draw_pile_size);
|
game.forward_until(turn, draw_pile_size);
|
||||||
|
if (draw_pile_size != 0 and game.state->draw_pile_size() != static_cast<size_t>(draw_pile_size)) {
|
||||||
|
std::cout << "This given draw pile size (" << draw_pile_size << ") cannot be obtained with the specified replay." << std::endl;
|
||||||
|
return;
|
||||||
|
}
|
||||||
game.state->modify_clues(clue_modifier);
|
game.state->modify_clues(clue_modifier);
|
||||||
|
|
||||||
if (not quiet) {
|
if (not quiet) {
|
||||||
|
|
Loading…
Reference in a new issue