Coder Social home page Coder Social logo

cardgame's People

Contributors

sebastien-perpignane avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

cardgame's Issues

Send an event when a deal ends with a capot

A capot is a big event during a contree game. It must be visible to players.
Game engine must send an event.

Game Text Displayer must write a very visible message when this event occurs.

At the end of a deal, display score details

Display raw score, not rounded score and final score
Exemples :

Example 1 : Team 1 announced 140

  • Raw score :
    • Team 1 : 155
    • Team 2 : 7
  • Not rounded score :
    • Team 1 : 155
    • Team 2 : 7
  • FInal score :
    • Team 1 : 160
    • Team 2 : 10

Example 2 : Team 1 announced capot

  • Raw score :
    • Team 1 : 155
    • Team 2 : 7
  • Not rounded score :
    • Team 1 : 0
    • Team 2 : 500
  • FInal score :
    • Team 1 : 0
    • Team 2 : 500

Refactor Player hierarchy

Separate game logic and event handling in the player implementations. Player classes must not be linked to thread or any other technical elements allowing communication between the game and a player.

Removing a card from the hand of a player must be done by the game

Now, the player class send a card to the game, then it removes the card from the hand. It means every player implementation must not forget to implement this action. It would be better if the game removes the card from the hand after the played card is accepted as a valid played card.

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.