This is a Python-based two-player card game where players compete to win rounds based on the values and colors of their cards. The game determines a winner by comparing each card's number or color hierarchy and keeps track of scores and game history using external files.
- User Authentication 🔑: Validates both players' details.
- Card Game Logic 🃏: Players compete based on card numbers and colors:
- If card numbers are equal, colors follow a hierarchy: yellow > red > black.
- Winner Determination 🏆: The player with the most cards at the end wins.
- External File Storage 💾: Winner details, top 5 players, and their cards and scores are stored in separate files.
- Input player details.
- Each player is dealt 15 cards.
- Compare cards each round based on number and color.
- The player who wins the most rounds is declared the winner.
winner.txt🥇: Stores current game winner’s details.leaderboard.txt📈: Stores the top 5 players' names and scores.cards.txt🃏: Stores the cards of the players.
- Clone the repository:
git clone https://github.com/t3hj/CardGame.git
- Navigate to the project directory:
cd CardGame - Run the program:
python "NEA Bridging code.py"
- Add a graphical user interface (GUI) for easier interaction 🎨.
- Include more card types or special abilities 🌟.
- Implement multiplayer mode over a network 🌐.
Feel free to submit a pull request if you'd like to contribute! 🤝