Coder Social home page Coder Social logo

minesweeper's Introduction

Minesweeper

Classic Minesweeper Game

Race the world in uncovering all tiles that don't contain a mine.

The goal is to uncover all tiles that are not containing mines. Use the flags to help you mark where you think a mine might be located

I have included a timer in the top right corner to track how long the game has been running. The counter at the top left is the number of green flags left. These green flags can be used to mark where a mine might be. To use flags instead of uncovering tiles, click the bottom left toggle button. This toggle button is user to enable or disable flag mode. When clicking on a tile, one of three things happens :

  • Uncover a mine (which means game over) and all other mines are uncovered. If a tile has been marked with a flag and it contains a mine, the flag will turn red.
  • A number greater than 0 shows up, indicating the number of adjacent tiles that contain mines
  • 0 shows up, which will subsequently uncover all adjacent tiles

The 8x8 grid which contains 64 tiles, 10 with mines, 54 without. If 54 tiles are uncovered without uncovering a mine, then you win!

The button centered below the grid changes faces depending on a loss or a win. To restart the game just click on this button.

Notes

I have put this game on the Google Play Store https://play.google.com/store/apps/details?id=com.etiennelawlor.minesweeper

I integrated this app with the Google Play Games service. In the overflow menu, you will notice that you can check the Leaderboard as well as any Achievements that were unlocked.

If you beat the game, your score will be submitted to Google Play Games, and you can potentially set the highest score.

Future Todos

In the future, I would like to come up with different difficulty levels, different board sizes, saving game progress, more achievements to unlock.

Issues

Connecting to Google Play Services works sometimes but not all the time. Given some more time I would be able to test on multiple devices to try to track down the issue. For example, on my Nexus 5 it is working, but at the moment on my Mom's Samsung Galaxy S5, connecting to Google Play Services is not working.

minesweeper's People

Contributors

lawloretienne avatar

Watchers

 avatar  avatar

Forkers

s0nerik

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.