Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Latest commit

 

History

History

documentation

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Documentation

This is a general documentation for EECS 448 Battleship game.

This guide contains information on getting the development and production server up, as well as information about tools used in the process of development and works cited.

Time Estimate

Time estimate and actual accounting of time taken.

Development

Clone this repository

git clone https://github.com/maxpatiiuk/eecs-448-battleship

This project uses pre-commit.com hooks, which run code linters and validators before every commit. Instructions for configuring pre-commit hooks can be found in .pre-commit-config.yaml

(Optional) Install development dependencies:

npm i  # install development dependencies

To start a development server, navigate to the inner eecs-448-battleship directory and run this command to start a static server (assuming you have python installed):

python -m http.server 8000

Now, navigate to http://localhost:8000 and start hacking away!

If you don't have python installed, you can use any one of these static web servers

Production

Clone this repository

git clone https://github.com/maxpatiiuk/eecs-448-battleship

Configure a reverse proxy (e.x Nginx) that would serve eecs-448-battleship folder on a public URL and handle the SSL certificate. Have players connect to the public instance to play with each other.

Documentation Generation

Documentation can be auto-generated with the tool Documentation.js. To install documentation.js globally using npm:

npm install -g documentation

The generated documentation files will be found under docs-gen and are compiled to html. This documentation framework follows JSDoc tags - all supported tags and formatting can be found here on JSDoc's website.

To generate new documentation recursively for all files within the eecs-448-battleship directory, start in the root of the repository and run:

documentation build eecs-448-battleship/** -f html -o documentation/auto-docs-gen

Open docs-gen/index.html in your browser to view the static docs.

Works Cited

Code References

  • The boilerplate for a starter project was copied from here. Then, it was modified to remove dependency on Next.js, React and Tailwind.CSS
  • Game board is rendered using table elements for the sake of accessibility, but it is styled as a grid, for the sake of convenience. User-agent table styles reset was copied from here (with modifications)
  • Basic OOP implementation of MVC was inspired by Backbone.js (except, we simplified and modernized it)

Documentation References

Tech stack

  • JavaScript
  • ESLint
  • Prettier
  • Stylelint

Tools Used

Tools used in the process of development

  • Git
  • pre-commit.com
  • GitHub
  • Vim
  • PyCharm
  • Visual Studio CODE
  • Documentation.js

Licence

This code is available under MIT Licence