Git Product home page Git Product logo

dominos's Introduction

Dominoes Game

Scrutinizer Code Quality Build Status Code Coverage

Dominoes is a family of games played with rectangular tiles. Each tile is divided into two square ends. Each end is marked with a number (one to six) of spots or is blank. There are 28 tiles, one for each combination of spots and blanks (see image). Write a program which allows two players to play Dominoes against each other:

  • The 28 tiles are shuffled face down and form the stock. Each player draws seven tiles
  • Pick a random tile to start the line of play
  • The players alternately extend the line of play with one tile at one of its two ends
  • A tile may only be placed next to another tile, if their respective values on the connecting ends are identical
  • If a player is unable to place a valid tile, they must keep on pulling tiles from the stock until they can
  • The game ends when one player wins by playing their last tile
  • You're not supposed to create an interactive application. Just write a program that will follow the rules above

Quick start

  1. Download the project. Or clone the repository:

    git clone [email protected]:faecie/dominos.git
    
  2. To run the game execute the command inside of the project's folder:

    make run
    

    โ— Requires either PHP 7.4 with Composer or Docker

Implementation:

The initial "white boarding" of a problem available as photos in the resource folder

dominos's People

Contributors

faecie avatar

Watchers

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