https://github.com/rajvatsal/battleship
Play against computer a game of battleship
https://github.com/rajvatsal/battleship
html-css-javascript test-driven-development webpack
Last synced: 10 months ago
JSON representation
Play against computer a game of battleship
- Host: GitHub
- URL: https://github.com/rajvatsal/battleship
- Owner: rajvatsal
- License: mit
- Created: 2024-06-24T07:27:27.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-20T06:38:07.000Z (over 1 year ago)
- Last Synced: 2025-03-05T01:15:38.670Z (over 1 year ago)
- Topics: html-css-javascript, test-driven-development, webpack
- Language: HTML
- Homepage: https://rajvatsal.github.io/battleship/
- Size: 2.12 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Battleship

## lessons learned
- Test driven development
- Getting more comfortable with pubsub and module pattern
- Got more confortable with git rebasing and improved quality of commit messages
- Better way to add fonts in css
- Functional mixins
- Function composition
## FURTHER IMPORVEMENTS
- Allow players to add ships
- Pass and play mode
- Drag mode
- Ships tracker that shows whose winning and whose losing
- AI chooses the second hit randomly instead of a fixed coordinate i.e.(up, right, bottom, left)
- Core App architecture
- Seperation of concenrns (Modules can be more seperated especially in screen controller)
- Test driven development (I didn't follow test driven development completely. It was really helpful at the start but as I moved on and made some changes to my exisiting logic the tests are all broke up. I didn't fix them because I unintentionally stopped using them maybe because I started working on my ui more, but I also made some changes to my logic and I didn't update my tests after I made those changes. I should've tested more often)