Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/epictetusz1/battleship
A Battleship project as part of The Odin Project curriculum, with the goal of learning Test-Driven-Development
https://github.com/epictetusz1/battleship
jest tdd theodinproject
Last synced: about 2 months ago
JSON representation
A Battleship project as part of The Odin Project curriculum, with the goal of learning Test-Driven-Development
- Host: GitHub
- URL: https://github.com/epictetusz1/battleship
- Owner: EpictetusZ1
- Created: 2021-10-23T17:20:43.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-16T17:35:50.000Z (about 3 years ago)
- Last Synced: 2024-11-06T08:13:26.935Z (3 months ago)
- Topics: jest, tdd, theodinproject
- Language: JavaScript
- Homepage: https://epictetusz1.github.io/battleship/
- Size: 143 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BattleShip
### Play the classic game BattleShip against a computer!
An assignment from [The Odin Project](https://www.theodinproject.com/) to learn and practice:
- Jest Testing framework
- TDD or Test Driven Development### Things I learned:
- Agile development principles using TDD
- Red, Green, Refactor
- Loose Coupling of objects/ modules
- Representing complex game states and preforming Create Read and Update operations on them### Functionality:
- Ability to place ships
- Alert user to Hit and Miss state for each coordinate they click on, for both the computer and user boards.
- Alert user when board is in a ready state.
- Alert user when game is over and who has won.### About:
- Board is represented by a 2-dimensional Array.
- This allows the game board to be represented and accessed by a Cartesian coordinate system, both for the user and computer.