diff options
author | Joffrey Bion <joffrey.bion@booking.com> | 2020-05-23 02:03:55 +0200 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@booking.com> | 2020-05-23 02:03:55 +0200 |
commit | 8c15e4c7e3a41caef24e93885f1600903f358078 (patch) | |
tree | 0977b65a606097482ae917466d184d288d24cf11 /sw-engine | |
parent | Add score board UI at end of game (diff) | |
download | seven-wonders-8c15e4c7e3a41caef24e93885f1600903f358078.tar.gz seven-wonders-8c15e4c7e3a41caef24e93885f1600903f358078.tar.bz2 seven-wonders-8c15e4c7e3a41caef24e93885f1600903f358078.zip |
Add "leave game" feature for end of game
Diffstat (limited to 'sw-engine')
-rw-r--r-- | sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/Game.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/Game.kt b/sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/Game.kt index b79fd381..8a5c1d93 100644 --- a/sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/Game.kt +++ b/sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/Game.kt @@ -171,7 +171,7 @@ class Game internal constructor( private fun executeEndOfAgeEvents() = table.resolveMilitaryConflicts() - private fun endOfGameReached(): Boolean = endOfAgeReached() && table.currentAge == LAST_AGE + fun endOfGameReached(): Boolean = endOfAgeReached() && table.currentAge == LAST_AGE private fun rotateHandsIfRelevant() { // we don't rotate hands if some player can play his last card (with the special ability) |