Coder Social home page Coder Social logo

mutuawiz / wixminesweeper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wo1v3r/wixminesweeper

0.0 0.0 0.0 360 KB

An SPA MineSweeper game for WIX Home Assignment

License: MIT License

TypeScript 71.45% JavaScript 4.30% HTML 9.93% CSS 14.32%

wixminesweeper's Introduction

alt text

Minesweeper

A MineSweeper game for WIX home assignment:

Made with Angular 4 using Angular CLI , Angular Material2 for design components. A Working example as of 17.5.2017 on: https://wo1v3r.github.io/WixMineSweeper/

Using Angular CLI: -Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

  • Upon Loading a 12x12 board will appear with 30 mines on it (Medium difficulty)
  • Left click a cell to reveal it, its' proximity of mines shows as a number\color
  • You can start a new game by pressing the 'New Game' button and enter desired values
  • You can choose a difficulty (Unicorn, Robot , Cowboy ) on the creation menu, this will alter the number of flags you have at your disposal. (And also alter the board's theme!)

How to play:

  • To restart the game with the latest settings, you can also press the bomb icon on the top of the page
  • If you want to cheat, You can toggle the 'Superman Mode' to reveal the board
  • Have fun and don't explode!

Running unit tests

  • Testing was done using Karma
  • Tests files are with .spec.ts suffix
  • Tests are written for every Angular component, and for the two data-type classes

Using Angular CLI: -Run npm install && ng test to execute the unit tests via Karma.

Development Notes:

  • The high number of cells available counters the gameplay, therefore I used intuitive color palletes in order to make the game playable on wider boards too
  • The game works correctly up to 300x300
  • Superman mode some times crashes the browser after 50,000 cells

wixminesweeper's People

Contributors

wo1v3r avatar

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.