Coders Packet

Card game using Python

By Shivapriya PS

In this project, I have created a card game using object-oriented topics of Python. Throughout the project, I have used classes and objects to complete the game.

In this project, I have created a card game that can support up to two players and let us play cards, and finally declare the winner. In this game, draws a card from the deck and a player with a higher card wins.

I'm going to make this game by defining classes representing a card or a player or a deck or the game itself.

When you start the game, the program lets you name the players and then let each player press any key and it will randomly choose a card for the players, and the card with a higher number wins.

To build  this game, I have used

1. Random-Python

2. Objects and classes

Download Complete Code

Comments

No comments yet