Please enable JavaScript to use CodeHS

Battleship Lab Playlist

In Battleship, you will use Object Oriented design to implement the board game Battleship.

By Andy Bayer

Software Developer at CodeHS

Video Battleship Demo
Exercise Battleship Part 1: The Ship Class
Exercise Battleship Part 2: The Location Class
Exercise Battleship Part 3: The Grid Class
Exercise Battleship Part 4: Adding a Ship to the Grid
Exercise Battleship Part 5: The Player Class
Exercise Battleship Part 6: The Battleship Class
Exercise Battleship Part 7: Finishing the Game
Exercise Battleship Extensions