webcamgasra.blogg.se

Rules of minesweeper game
Rules of minesweeper game




rules of minesweeper game
  1. #RULES OF MINESWEEPER GAME FULL#
  2. #RULES OF MINESWEEPER GAME FREE#

  • The user should be clearly informed if they have “won” or “lost” the game.
  • The user should be able to restart the game.
  • The state of two or more components should be synced.
  • User interaction should modify the state of some components.
  • Each component rendered in this way should have a key that uniquely identifies it (see Task: React II).

    rules of minesweeper game

  • A number of components should be rendered using the array.Map() method.
  • #RULES OF MINESWEEPER GAME FREE#

    Feel free to use React-Bootstrap or another library and/or your own custom stylesheets.

  • It should include attractively styled components (at least 4 different types of components) that respond to user interaction.
  • rules of minesweeper game

  • It should be created using Create React App.
  • Tic-tac-toe is not a suitable choice!Īny game that you create should meet the following criteria: Feel free to create another game (such as Suduko, Mahong, a memory game etc) of your choice. It is not compulsory that you create a Minesweeper game. If you are not familiar with Minesweeper, try it out here.

    rules of minesweeper game

    If a tile that hides a “mine” is clicked, the user loses and the game is over. Minesweeper is a simple game where a user clicks on tiles to reveal whether there is a “mine” behind the tile or not. To be able to successfully do this, you will need to consolidate all the concepts you have learned about React, JSX and JavaScript so far.Ĭreate a React app that allows users to play Minesweeper. These were the instructions I was given to guide me in creating this game.įor this Capstone Project, you will be tasked to create a simple game using React. This task is my recreation of the traditional "Minesweeper" computer game using React.

    #RULES OF MINESWEEPER GAME FULL#

    Reveals all of the highest number still hidden on the minefield that is 4 of greater.HyperionDev Full Stack Web Development Bootcamp - React task - Level 2 - Task 12 - Capstone project - Minesweeper game Description Reveals all adjacent mines to a selected number. Reveals a large amount of squares, automatically flagging any mines detected.įorces the clock to run at half speed for a period of time. Grants a 25% bonus in completed minefields. When aiming for the Ultimate rank, it is suggested that you use XP Bonus, Shield and any other powerup to help you complete the Beginner Speed grid as quickly as possible. For example, if you are constantly being flummoxed by a 50:50 mine at the end of the game, use a powerup that either automatically flags or reveals the squares, or protect against the detonation of the mine. Note that using a powerup requires a certain amount of tokens, which are awarded to your over time.ĭepending on what achievements you are aiming for, or which game difficulty you are playing, it is wise to use a combination of these powerups if you have enough tokens. Depending on the type of powerup, some are automatically used if selected, whilst others require you to actively use them in-game by clicking on them. Depending on your rank, you can take 1, 2, or even 3 powerups in to a game at a time. These powerups can be used to make it easier to complete the grid. As you gain XP, you will improve your rank, and unlock various powerups. PowerupsĪs you complete grids, you will gain XP. From there, you should be able to clear the majority of squares surrounding the mine, especially if there are lots of 1s and 2s nearby. Corners of squares are easiest to spot squares with mines under, so I would recommend starting at these. I would recommend trying both methods.Īs you play, you will learn combinations. Some people like to place this square in the centre of the grid, but I personally liked to place it near a corner, so I could work around the outside of the grid. As such, it is always a good idea to place this somewhere strategic. The first square you dig is ALWAYS mine-free. Make sure you are 100% sure that there is a mine in the position before placing a flag, otherwise it may confuse you later and potentially cause a Game Over. Note that just because you have placed a flag, it does not necessarily mean it is in the correct position. Using the numbers on mine-free squares, the Flag tool, and of course your superior human intellect, you can work your way through the grid bit by bit.Īs there is a defined number of mines, each time you place a flag, the number of 'undiscovered' mines is still shown above the grid. If the square shows 1, there is a single mine adjacent, 2 and there is 2 mines adjacent, and so on. If you click a square with no mines adjacent, all adjacent empty squares will also be revealed, showing all squares with at least one mine adjacent. If there is no number, the surrounding squares are also free of mines. Each uncovered mine-free square will show you how many mines are directly adjacent.






    Rules of minesweeper game