Skip to content

drakeredwind01/card-matching-game

Repository files navigation

card-matching-game

snipit of card_matching_game_with_class_2.1_with_answers.py

['3', '5', '7', '1', '1', '2', '7', '8', '4', '2', '3', '8', '6', '5', '6', '4']
▓ ▓ ▓ ▓
▓ ▓ ▓ ▓
▓ ▓ ▓ ▓
▓ ▓ ▓ ▓

Please choose the x-coordinate of the first card: 1
Please choose the y-coordinate of the first card: 4
▓ ▓ ▓ 1
▓ ▓ ▓ ▓
▓ ▓ ▓ ▓
▓ ▓ ▓ ▓

Please choose the x-coordinate of the second card: 2
Please choose the y-coordinate of the second card: 1
▓ ▓ ▓ 1
1 ▓ ▓ ▓
▓ ▓ ▓ ▓
▓ ▓ ▓ ▓
Congratulations! You found a match.
['3', '5', '7', None, None, '2', '7', '8', '4', '2', '3', '8', '6', '5', '6', '4']
Initial thoughts:
# Create card shape
# Order cards (5 x 4)
# Number each card
# Create a list of paired numbers
# Randomize numbers
# Assign randomized numbers to cards in game
# Create two inputs for user to pick two numbers
# Show what number is behind the card
# Say if the cards match
# If cards match, remove matched cards from game
# If no match, don’t update board
# Flip cards back over
# Loop until all cards are matched
# Print “You win!” when game ends

# Prevent user from picking same number twice
# Prevent user from picking already matched cards

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages