Created
August 1, 2020 21:20
-
-
Save satan87/bc795286954233faf8ed41a8939af652 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func testGamePhaseOneDirectEndGame() { | |
let game = Game(players: [Player(name: "Player1"), Player(name: "Player2")]) | |
game.playDebug(combination: Combination(one: 4, two: 2, three: 1)) // 421 -> 10 tokens | |
game.playDebug(combination: Combination(one: 1, two: 1, three: 1)) // 111 -> 6 tokens | |
XCTAssertEqual(0, game.tokenPlayers[0]) | |
XCTAssertEqual(15, game.tokenPlayers[1]) | |
XCTAssertEqual(0, game.tokenToDistribute) | |
XCTAssertTrue(game.isOver) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment