Git Product home page Git Product logo

concordia-university-immersion-l3-yahtzee's Introduction

AmiralBl3ndic's github stats

concordia-university-immersion-l3-yahtzee's People

Contributors

amiralbl3ndic avatar inesdoreau avatar

Watchers

 avatar

concordia-university-immersion-l3-yahtzee's Issues

Analyze existing implementations of the game

For the last handout, we need each member of the team to test and analyze existing implementations of the game (online or wherever you decide to look for a Yahtzee computer program).
This report must be approximately 2 pages long (per member) and must precise what were the strong and weak points of the tested implementations.

Display score table

TODO

Display the scores of each player before and after the turn.

There must be a method to only display the current player's score and a static method to display all of the players scores

TODO: Player class

TODO

The player class represents a player. Hence, it should have 2 main properties:

  • The name of the player
  • The score (and records) of the player

With these two properties, we should be able to obtain all the data we need about a user without further complications.

TODO: Record the results

TODO

Check the table of previous results to record the user choice if possible.

At any turn, a player can:

  • Get the points provided by the combination of dices he obtained
  • Set 0 points to any other combination he did not already reach (to allow himself to maybe reach a higher score combination)

TODO: roll dices

TODO

Roll the dices
This must be done in at least in a static method of the Dice class

public class Dice {
    public static int roll () {
        // Code here
    }
}

Combination check

TODO

Check combinations to display what each dices roll offers to play

TODO: Analyze the results

TODO

Dice rolls results analysis.
It must check the combinations of dices and find the number of points associated to the selected 'combo'

It may also check for all the possible combinations (this would be useful as an enhancement to allow the player to directly chose the best option based on the provided analysis).

Better scoreboard

The current scoreboard is functional but to be honest we did not do our best to have a fancy looking scoreboard.

The goal of this issue is to implement a new scoreboard for both the single player and all the players in order to make each player conscious about his score at any time without him needing to put any particular effort reading the table

TODO: Scores class

The scores class represents the scoreboard for each player, i.e. each instance represents the recorded plays of its owner during the game.

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.