Battleships

I really wanted to bring one of my favourite childhood games to life on the screen after building Minesweeper. It was a big challenge considering how to generate a grid and automatically place the boats onto the grid, and then write a script to allow the human to play the computer. It was even more of a challenge writing a programme that sometimes wins - which it does!

My goal is to carry on working on this and try to get the computer to win almost half of the time…

This project uses…

  • JavaScript
  • React
  • Recursion
  • Mocha
  • Chai
  • CSS

Published July 2019

Go to Web Site →