Giter Site home page Giter Site logo

daviemakz / simulate-match Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 37 KB

Simulates a card game called "Match!" between two computer players using N packs of cards (standard 52 card, 4 suit packs).

License: GNU General Public License v3.0

Perl 100.00%
match

simulate-match's Introduction

STATUS

Build Status Issue Count

SUMMARY

This is a small repository which simulates a card game called "Match!" between two computer players using N packs of cards (standard 52 card, 4 suit packs).

The "Match!" matching condition can be the face value of the card, the suit, or both. When two matching cards are played sequentially, a player is chosen randomly as having declared "Match!" first and takes ownership of all cards played in that run.

Play continues until the pile is completely exhausted (any cards played without ending in a "Match!" at the time the pile is exhausted are ignored). The total number of cards "owned" by each player is counted up and a winner/draw is declared.

HOW TO INSTALL

To install the application run the following commands:

perl Makefile.PL
make
make test
make install

HOW TO RUN

To execute the program run the following command in your terminal:

play-match

TESTS

To run manual tests navigate to the repository root directory and execute:

prove

or

make test

Enjoy!

simulate-match's People

Contributors

daviemakz 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.