Create an algorithm that randomly builds a card on every refresh:
-
Every time the website refreshes a new random card needs to show.
-
The card must have one of the possible suits: Hearts, Spades, Clubs and Diamonds.
-
The card value must be one of the following: 1 to 10, King, Queen, Jack or Ace, (no joker).
This exercise covers the following fundamentals:
- Basic structure for every HTML5 website.
- The Link tag to import CSS Rules.
- Using google fonts.
- Using the different selectors available in CSS.
- Working with boxes: border, padding and margins.
- Javascript variables, functions, algorithms.
- Events.
Use the following command to preview the project:
$ pip3 install flask && python3 server.py
Github: LeyCod
Linkedin: Emmanuel L. Guacache R.