Git Product home page Git Product logo

yahtzee's Introduction

Yahtzee

Description

This is a 2 - 5 player terminal version of Yahtzee that I created over a couple days of coding. The game itself should allow for the usual rules of Yahtzee. This includes bonus scoring for scores higher than 63 in the upper section and bonus Yahtzees.

This was coded and uploaded after roughly two weeks of coding experience/practice. Any feedback/bugfinds are appreciated!

Installation

  1. Ensure you have ruby installed on you system --> Check here for installation instructions

  2. Download or clone repo onto your machine

  3. Open your terminal and navigate into the src directory

  4. Once inside the src directory, run:

    > ruby init.rb

  5. Enjoy!

Planned Changes

-- Refactor code to better reflect DRY principle

-- Evaluate links between the Game and Player class. Do I need to pass as much data between the two?

-- Maybe change "select dice to keep" to "select dice to roll"

Changelog

10.4.20 Initial Commit to Github

11.4.20 Fixes bug where player cannot choose "0" when deciding how many dice to keep

If you find any bugs, feel free to let me know/play with the code as you wish!

yahtzee's People

Contributors

nick-ducker 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.