From 8c15e4c7e3a41caef24e93885f1600903f358078 Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Sat, 23 May 2020 02:03:55 +0200 Subject: Add "leave game" feature for end of game --- sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/Game.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw-engine') 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) -- cgit