table's People
table's Issues
Image in header could be smaller to save bits
Image could be resized to a fraction of the current size to about 1/15th the size. from ~250kb to ~16kb.
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.
Bootstrap location moved
Readable bootstrap CSS has a new location
Create utility function to shuffle cards
This utility needs take in a collection of cards and return a new collection of those cards in a randomized order.
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:
Browser console warning for BrowserRouter vs Router
Firefox warns about using Router instead of BrowserRouter.
What are benefits?
Deal Button
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.