Fixed misspelling
This commit is contained in:
parent
90e8610f43
commit
4cee34fb7d
@ -3,13 +3,13 @@ class GameLoop(private val first: Character,
|
|||||||
val complition: (Character, Character) -> Unit) {
|
val complition: (Character, Character) -> Unit) {
|
||||||
|
|
||||||
fun init() {
|
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
|
first.enemy = second
|
||||||
second.enemy = first
|
second.enemy = first
|
||||||
first.endGameAsLoser = { //first's deck is dry
|
first.endGameAsLoser = { //first's deck is empty
|
||||||
complition(second, first)
|
complition(second, first)
|
||||||
}
|
}
|
||||||
second.endGameAsLoser = { //second's deck is dry
|
second.endGameAsLoser = { //second's deck is empty
|
||||||
complition(first, second)
|
complition(first, second)
|
||||||
}
|
}
|
||||||
first.drawFromDeck(3)
|
first.drawFromDeck(3)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user