JerrelMitchell / battleshift

0 stars 0 forks source link

Game Play Spec (Spec Harness) #6

Open JerrelMitchell opened 6 years ago

JerrelMitchell commented 6 years ago

Game creation and sequence: (((Refactor this test???))) (((Check README for endpoint and ENV setup)))

Create the game

Place the opponent's ships

Player 2 fires a MISS

Player 2 attempts to fire again but it isn't their turn

Player 1 fires second HIT on ship 1

Player 2 fires on an invalid space

Player 1 attempts to fire a shot but receives an error message

Player 2 fires a HIT on ship 2

Player 1 fires a HIT on ship 1 and sinks it

Player 2 fires a HIT on ship 2 and sinks it

Player 1 fires a HIT on ship 2

Player 2 fires a HIT on ship 1

Player 1 fires a HIT on ship 2 and sinks it. Game ends.