GithubHelp home page GithubHelp logo

minesweeper's Introduction

About Minesweeper

This application is a single player game with API and client to play this old famous game minesweeper

Requirements

  • PHP 5.6, Sqlite, Composer

Running

To run this application follow the lines below.

API

This API works with two endpoints:

  • api/v1/game
    • params: username, rows, cols and bombs
    • this endpoing return a JSON messagem with the structure like this:
{
 "username":"eduardo",
 "game_id":54,
 "status":"playing",
 "rows":"5",
 "cols":"5",
 "bombs":"5",
 "revealed":"H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H"
}
  • api/v1/game/reveal
    • params: game_id, row, col
    • this endpoing return a JSON messagem with the structure like this:

with row = 0 and col = 1. is a bomb

{
 "status":"Game Over",
 "revealed":"H,B,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H"
}

with row = 0 and col = 2. is a number 1

{
 "status":"playing",
 "revealed":"H,H,1,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H"
}

Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell at [email protected]. All security vulnerabilities will be promptly addressed.

License

The Laravel framework is open-sourced software licensed under the MIT license.

minesweeper's People

Contributors

eduardobcolombo avatar

Watchers

James Cloos avatar  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.