Skip to content

Instantly share code, notes, and snippets.

@satan87
Created August 1, 2020 21:20
Show Gist options
  • Save satan87/bc795286954233faf8ed41a8939af652 to your computer and use it in GitHub Desktop.
Save satan87/bc795286954233faf8ed41a8939af652 to your computer and use it in GitHub Desktop.
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