Code Monkey home page Code Monkey logo

table's People

Contributors

boonejeeper avatar elevow avatar

Stargazers

 avatar

Watchers

 avatar  avatar

table's Issues

Add win rule to compare numbers

After a "Deal" action, a rule should be applied to the results for each player to determine the "winner".

Display result "{X} Wins!" below the Player's labels. {X} = Player name. (Example: "Player A Wins!"

Add favicon

Firefox console is complaining about a missing favicon. So we should add one to make it shut up.

Deck of Cards

Define a schema to represent a stack of cards.

This schema will eventually define behaviors of various types of collections of cards (hand, draw pile, discard pile, etc.). In this current implementation, we simply need a collection of cards.

Display Game Outcome

During the first iteration, the output will contain the following elements and be similar to the following.

Elements:
Player A Label
Player B Label

Display:
Player A:
Player B:

Deal Button

"Deal" a number to each user using random number generator util. #1

DIsplay output #2

Random Number Generator

We need a random number generator to serve as a util.

Determine necessity of using a library.

Functions
randomInt(max) // 0 <= number < max
randomInt(min, max) // min <= number <= max

Define a Token schema

We need to define a schema that will represent a Card in the game of War.

This schema should handle a suit and rank.

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.