Lights Out Game consists of a 5x5
grid of lights. When the game starts, a random number or a stored pattern of these lights is switched on. Pressing any of the lights will toggle it and the adjacent lights.
The goal of the puzzle is to switch all the lights off, preferably with as few button presses as possible...
-
Clone repo or downloand zip:
[email protected]:katepysova/Lights-Out-Game.git
-
Change your current directory to this project directory.
-
npm install
-
git init
-
npm run prepare
- to install git pre-commit hook (does not work not in a git repository). -
git add .husky/pre-commit
- to add git pre-commit hook. -
touch .env
- to create.env
file, if needed.
-
npm run dev
- to start the app on the localhost. Open http://localhost:3000 to view it in your browser. -
npm run predeploy
- to build the app for production to thedist
folder. Your app is ready to be deployed! -
npm run deploy
- to deploy the app on the GitHub Pages. See Notes on client-side routing.
npm run format
- to format and lint the code.