WEBVTT

1
00:00:00.000 --> 00:00:03.650
So Mocha comes with a special watch flag,
that will automatically run

2
00:00:03.650 --> 00:00:08.700
any specified test when it sees changes
in a certain file or directory.

3
00:00:08.700 --> 00:00:12.820
For example, when you launch the latest
workspace or open the project files for

4
00:00:12.820 --> 00:00:13.920
this video.

5
00:00:13.920 --> 00:00:18.130
You'll see that I filled in the spec we
started writing in the previous video for

6
00:00:18.130 --> 00:00:24.330
the checkGameStatus function but I still
haven't finished the function itself.

7
00:00:24.330 --> 00:00:29.300
So when I run checkGameStatus
on a player with one sunken ship

8
00:00:29.300 --> 00:00:30.000
then the game should be over and
checkGameStatus should report false.
