PASSED
Test file Test results Time %
t/01-game-rules.t
  • 1..30
  • ok 1 - the player to move is vertical at the beginning of the game
  • ok 2 - the player to move is horizontal after the first move
  • ok 3 - the player to move alternates with every move
  • ok 4 - a sarsen move must have a certain syntax
  • ok 5 - a sarsen move must be within the limits of the board
  • ok 6 - a sarsen move can be made directly on the ground
  • ok 7 - a sarsen move can be made on top of the same color
  • ok 8 - a sarsen move can not be made on top of another color
  • ok 9 - a lintel move must have a certain syntax
  • ok 10 - a lintel move must be within the limits of the board
  • ok 11 - a lintel move can not be made directly on the ground
  • ok 12 - a lintel move must be made two units apart
  • ok 13 - a lintel move must have support at both ends
  • ok 14 - a lintel move can not have less than two friendly stones under it
  • ok 15 - a lintel move can not have more than two friendly stones under it
  • ok 16 - a lintel move can form a bridge
  • ok 17 - a lintel move can claim enemy territory
  • ok 18 - swapping is allowed as the second move
  • ok 19 - swapping is not allowed as the first move
  • ok 20 - swapping is not allowed after the second move
  • ok 21 - swapping exchanges the colors of the players
  • ok 22 - swapping makes it the second player's turn again
  • ok 23 - passing does not change the board
  • ok 24 - passing makes it the other player's turn
  • ok 25 - passing twice ends the game
  • ok 26 - resigning must have a certain syntax
  • ok 27 - resigning does not change the board
  • ok 28 - resigning ends the game
  • ok 29 - a chain wins the game if it connects a player's edges
  • ok 30 - a chain does not win the game if it connects the enemy's edges
36.49s 100.0%
1 files 30 tests, 30 ok, 0 failed, 0 todo, 0 skipped, 0 parse errors
exit status: 0, wait status: 0
elapsed time: 37 wallclock secs ( 0.04 usr 0.02 sys + 18.70 cusr 0.43 csys = 19.19 CPU)
36.49s 100.0%