From 4cee34fb7d4c697c5a9c986cc2e4b564c4971c53 Mon Sep 17 00:00:00 2001 From: Tony Yang Date: Tue, 28 Aug 2018 08:04:04 +0000 Subject: [PATCH] Fixed misspelling --- GameLoop.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GameLoop.kt b/GameLoop.kt index a1b3071..133bf33 100644 --- a/GameLoop.kt +++ b/GameLoop.kt @@ -3,13 +3,13 @@ class GameLoop(private val first: Character, val complition: (Character, Character) -> Unit) { fun init() { - //enemy must be initialize first since the Card initiate needs them + //enemy must be initialized first since the Card initiate needs them first.enemy = second second.enemy = first - first.endGameAsLoser = { //first's deck is dry + first.endGameAsLoser = { //first's deck is empty complition(second, first) } - second.endGameAsLoser = { //second's deck is dry + second.endGameAsLoser = { //second's deck is empty complition(first, second) } first.drawFromDeck(3)