Git Product home page Git Product logo

pig-dice's Introduction

Greedy Pigs.

Description

Greedy Pigs is a 2-player dice game of chance and expectation, greed and strategy.

Screenshots

Homepage

Image

Live Site

Try your hand at the game - Greedy Pigs.

Built With

Behavior Driven Development (BDD)

User Inputs Example Outputs
When it receives: It should return:
User clicks "Play". User is taken to the game console.
Player "Rolls" dice. Dice face displays a random number from 1-6.
Player rolls a number from 2-6. The number is added to Player's present score, Player may roll dice again.
Player rolls a 1. The player's present score displays 0, Console displays "too bad!", Play moves to next Player.
Player holds/chooses to forfeit roll. Points for the round are added to Player's total counter, Play moves to next Player.
Player's total score is >== 100 Player wins the game, game play is disabled, Console displays "Player " " wins!".
When player 1 is playing. Player 2 cannot Play, Player 2's console is disabled.
When Player 2 is playing. Player 1 cannot Play, Player 2's console is disabled.
User clicks "New Game". Game is reset/refreshed, Both counters display 0, Prompt player 1 to start.
Optional Rules
Player rolls a hat-trick (three "6's" in a row) The player's present score displays 0, Console displays "too bad!", Play moves to next Player.
Limit the number of rounds to 10 Game ends after the set number of rounds

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Authors

Acknowledgments

License

This project is licensed under the MIT License - see the LICENSE.md file for details

pig-dice's People

Contributors

tc-mwangi avatar

Watchers

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