Merge branch 'master' of t510599/ElegyOfDisaster-v2-kotlin into master

This commit is contained in:
secminhr 2018-08-28 10:02:37 +00:00 committed by Gitea
commit 85264c2fe6

View File

@ -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)