Giter VIP home page Giter VIP logo

mindsweeper's Introduction

Task description

Desired result:

  • Develop simple UI interface for the minesweeper game
  • Solve levels and (?) find 4 passwords

Game UI requirements:

  • Backend located at wss://hometask.eg1236.com/game1/
  • API documentation available via request 'help' to the backend ws endpoint
  • UI application should keep connection during user game session
  • Game has 4 levels
  • Level board dimension is not static

Solving the levels:

  • It is allowed to use minesweeper solving algorithm

API:

help

Message from server
help      - returns valid commands
new L     - starts new session, L=1|2|3|4
map       - returns the current map
open X Y  - opens cell at X,Y coordinates

new 1, new 2, new 3, new 4

Valid command

new: OK

Invalid command

Unknown command. Send 'help' to view documentation.

map

Level is not set

map: Not started

Level is set

map:
□□□□□□□□□□
□□□□□□□□□□
□□□□□□□□□□
□□□□□□□□□□
□□□□□□□□□□
□□□□□□□□□□
□□□□□□□□□□
□□□□□□□□□□
□□□□□□□□□□
□□□□□□□□□□

User lost

map:
1*□□□□□□□□
112□□□□□□□
00111112□□
00000001□□
00001111□□
00112□□□□□
012□□□□□□□
01□□□□□□□□
02□□□□□□□□
01□□□□□□□□

open X Y
Note: coordinate origin is in the top left corner

Level is not set

open: Not started

Valid X, Y

open: OK

Invalid X, Y

open: Out of bounds

Open X, Y with bomb cell

open: You lose

Open X, Y resolves the game

open: You win. The password for this level is: ThisWasEasy

Unknown command

Unknown command. Send 'help' to view documentation.

mindsweeper's People

Contributors

harunou avatar

Watchers

 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.