Skip to content

The game is called "The Cards Game". It is a game for two players. Each player has a deck of 11 cards. The game is played by turns. Each turn, a player plays one card on the table.

License

Notifications You must be signed in to change notification settings

miguelgargallo/Cards-Game-Python-Steam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Cards Game

The game is called "The Cards Game". It is a game for two players. Each player has a deck of 11 cards. The game is played by turns. Each turn, a player plays one card on the table.

Goal

The goal of the game is to score points by grouping cards of the same type. The game ends after 11 turns. At the end of the game, the player with the most points wins.

How many players and cards are involved?

The game is played by two players. Each player has a deck of 11 cards. The deck is made up of 55 cards. There are 11 cards of each type. The types are: Water 💧, Fire 🔥, Rock 🪨, Wind 💨, Plant 🌱.

What are the types of cards and how are they symbolized?

The types of cards are: Water 💧, Fire 🔥, Rock 🪨, Wind 💨, Plant 🌱. Each type is symbolized by a different emoji.

Game mechanics

How do the different types of cards interact with each other?

The cards interact with each other in the following way:

  • Water 💧 beats Fire 🔥.
  • Fire 🔥 beats Rock 🪨.
  • Rock 🪨 beats Wind 💨.
  • Wind 💨 beats Plant 🌱.
  • Plant 🌱 beats Water 💧.

Game play

How is the game played?

The game is played by turns. Each turn, a player plays one card on the table. The player who plays the card with the highest value wins the turn. If both players play the same card, the turn is a draw. The player who won the turn scores 1 point. If the turn is a draw, no player scores any points.

What is the goal of the game?

The goal of the game is to score points by grouping cards of the same type. The player with the most points at the end of the game wins.

How do players score points?

The players score points by grouping cards of the same type. The player who has the most cards of a given type scores 1 point for each card of that type. If both players have the same number of cards of a given type, no player scores any points for that type.

End of game

What happens at the end of the game?

At the end of the game, the player with the most points wins.

Is it possible to earn additional points after the game has ended?

No. It is not possible to earn additional points after the game has ended.

Updates

v1.0.2 Audit Update

Add comments to explain the purpose of each block of code. This will make it easier to understand the code and improve its readability.

Consider using a dictionary to map the cards to their corresponding effects, rather than using a series of if statements. This will make the code more concise and easier to maintain.

Use a function to reset the game at the end of each round. This will reduce redundancy and make the code easier to read.

Use descriptive variable names to make the code more readable. For example, you could use player_card and computer_card instead of player_deck[turn-1] and computer_deck[turn-1].

Use a for loop to iterate over the turns, rather than a while loop with a counter variable. This will make the code simpler and easier to understand.

Consider using a for loop to deal the cards to each player, rather than using a for loop with a counter variable. This will make the code more concise and easier to understand.

Consider adding error handling to handle invalid input and prevent the program from crashing. For example, you could use a try-except block to handle the case where the user enters a value that cannot be converted to an integer.

1.0.3 Table on the match

We added a table to view the cards.

Player's cards: 🌱 🪨 💧 💨 🔥 🌱 🪨 💧 💨 🔥 🌱
Computer's cards: 💨 🔥 🌱 🪨 💧 💨 🔥 🌱 🪨 💧 💨

Conclusion

Summary of the game and its mechanics.

The game is called "The 11 cards game". It is a game for two players. Each player has a deck of 11 cards. The game is played by turns. Each turn, a player plays one card on the table. The goal of the game is to score points by grouping cards of the same type. The game ends after 11 turns. At the end of the game, the player with the most points wins.

License

2022 © All rights reserved. Pylar AI creative ML License. License

About

The game is called "The Cards Game". It is a game for two players. Each player has a deck of 11 cards. The game is played by turns. Each turn, a player plays one card on the table.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages