Workshop › Battleship › Step 29 of 35
When the game is over, the enemy's ships are revealed, so after a loss you can see where they were hiding.
```js
drawSea(SEA, BIG, myShots, enemyFleet, state !== 'playing', null)
```showShips is now true whenever the game is not being played (won or lost).In draw, change false to state !== 'playing' in the enemy's drawSea call.
Skills: Game states
← H for heat A keyboard cursor →