Skip to content

DanilChugaev/sapper

Repository files navigation

SAPPER game

Modern version of the classic sapper game

PLAY HERE

Contents

sapper preview

Prerequisites

Features

  • sapper game
  • store the best time of the level in the localstorage
  • store the selected level in the localstorage
  • if the game ends badly, the flags set by mistake are not removed, and the flags set into bombs are correctly turned into bombs
  • if the flag is placed in an empty field - do not touch it when opening an empty field

Future improvements

  • 1 click always on an empty cell
  • pause in the game
  • change color scheme
  • come up with an algorithm for generating bombs so that there are no situations when you need to randomize, or at least minimize them
  • instead of seconds, do a normal time count with minutes
  • adaptive screen size
  • show the region of the central cell when hovering over it

Run Locally

Clone the project

  git clone git@github.com:DanilChugaev/sapper.git

Go to the project directory

  cd sapper

Install dependencies

  npm install

Start the development server

  npm run dev

Build For Production

To generate production build

 npm run build

Lint project

To lint code in project

 npm run lint

License

MIT