← Back to Projects

Random Card Generator CLI

Goal

4Geeks Coding Projects tutorials and exercises for people learning to code or improving their coding skills

Difficulty

beginner

Repository

Click to open

Video

Not available

Live demo

Not available

Average duration

4 hrs

Technologies

alt text Random Card Dealer CLI Python

Random Card CLI Python

In this project you will learn how to use coding logic to generate random cards.

Instructions

Create an algorithm that randomly builds a random card every time it runs:

  1. Start by cloning this repo:
$ git clone https://github.com/breatheco-de/exercise-random-card-cli-python`
  1. Run the algorithm by typing:
python3 app.py
  1. Every time the algorithm runs a new random card needs to show on the console.
  2. The card must have one of the possible suites: Hearts, Spades, Clubs and Diamonds.
  3. The card value must be one of the following: 1 to 10, King, Queen, Jack or Ace (no joker).

In the end, the project needs to look similar to this demo.

Hints

  • You can use emoji for the card suites: ♡ ♧ ♤ ♢

Goal

4Geeks Coding Projects tutorials and exercises for people learning to code or improving their coding skills

Difficulty

beginner

Repository

Click to open

Video

Not available

Live demo

Not available

Average duration

4 hrs

All rights reserved, 4Geeks LLC 2021. Read more about 4Geeks and what we are going here.