Skip to content

kpranke/challenge-card-game-becode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

341e672 · Oct 6, 2021

History

35 Commits
Oct 6, 2021
Oct 4, 2021
Oct 6, 2021
Oct 6, 2021

Repository files navigation

Card Game Challenge

Description

This project is a part of the Becode.org AI Bootcamp programme. The task is to build a basis for a card game by using OOP in Python.

Card game!

For the moment, only the basic functionalities have been implemented:

  • A deck of cards is created for two players.
  • Cards are shuffled and distributed among the two players. Each player plays a card until there is no cards left.

Objectives

  • Make a good usage of classes.
  • Use Object-Oriented-Programming (OOP).
  • Use imports in a clean way.
  • Use a clean architecture.
  • Structure a project.
  • Go deeper in object inheritance.

Repo architecture

Card Game Challenge
│
│   README.md      :explains the project
│   main.py        :Python script file necessary to initialize the game
│   
│__   
│   utils         :directory contains all modules required to run the game
│   │
│   │ card.py      :Python script file with the Symbol and Card classes 
│   │
│   │ game.py      :Python script file with the Board class
│   │
│   │ player.py    :Python script file with the Player and Deck classes

Installation

git clone this repository into your local environment.

Usage

In order to start the game run main.py in your command line.

Timeline

October 2021

Time limit: 3 days

This is the first OOP project within the Becode.org AI Bootcamp to test our understanding of the OOP concept in Python (approx. 3 weeks from the start of the programme). The full duration of the programme is 7 months.

Personal situation

I am currently participating in the Becode.org AI Bootcamp to upskill into a career in data science.

About

Using OOP in Python to create a card game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages