Skip to content

educational task for RS-School Front-end course 2023q1 - minesweeper game

Notifications You must be signed in to change notification settings

anastakozz/minesweeper

Repository files navigation

Minesweeper game

Educational task made for Rolling Scope School on Frontend course 2023.

Author: Anastasiya Kozlova (shvedagon@gmail.com / Telegram: @N_Kozz)

Task: link

Main goals:

  • implement working game using only native Javascript
Screenshot 2024-07-01 at 13 34 35

Score: 180/180

Basic scope +40

  • layout, design, responsive UI: +10
  • at the beginning state of the game, the frame has size 10x10 and is filled with unopened cells. Should be 10 mines on field by default: +10
  • when user click on cells - it should be opened and marked as one of the following state: empty cell, cell with number, or cell with mine: +10
  • the game should end when the player reveals all cells that do not contain mines (win) or clicks on mine (lose) and related message is displayed at the end of the game: +10

Advanced scope +80

  • mines are placed after the first move, so that user cannot lose on the first move. +20
  • user can mark “mined” cells using flags so as not to accidentally open them displaying the number of unused flags: +10
  • every number (that is displaying the count of bombs near opened cell) should have unique color: +10
  • the game can be restarted without reloading the page: +10
  • game duration and number of remaining (unused) flags are displayed: +15
  • when user opens a square that does not touch any mines, it will be empty and the adjacent squares will automatically open in all directions until reaching squares that contain numbers: +15

Hacker scope +60

  • sound accompaniment (on/off) when clicking on cell and at the end of the game: +10
  • implement ability to change the size (easy - 10x10, medium - 15x15, hard - 25x25) and number of mines for each size of the field (from 10 to 99): +20
  • implemented saving the latest 10 win results using LocalStorage: +10
  • implemented saving the state of the game: +10
  • option to choose different themes for the game board (dark/light themes): +10

Penalties

  • using JQuery - 0 points for the task
  • using Angular / React / Vue / Typescript - 0 points for the task
  • body in the index.html is not empty - 0 points for the task

About

educational task for RS-School Front-end course 2023q1 - minesweeper game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published