Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Basic Object-Oriented Python Creating a Memory Game Card Class

Tip ā€” add pictures to your cards with emoji šŸ’

I wanted my grid to look more like traditional memory cards with pictures, so I used emoji instead of words. Emoji are treated as text characters, so they swap into this project without any extra code.

Ā¦  šŸ’  Ā¦  šŸ¦‰  Ā¦  šŸŒ»  Ā¦  šŸ¦š  Ā¦
Ā¦  šŸ‡  Ā¦  šŸŒ»  Ā¦  šŸ‡  Ā¦  šŸ˜  Ā¦
Ā¦  šŸ›¼  Ā¦  šŸ˜  Ā¦  šŸ  Ā¦  šŸ¦‰  Ā¦
Ā¦  šŸ  Ā¦  šŸ›¼  Ā¦  šŸ’  Ā¦  šŸ¦š  Ā¦
Ā¦  šŸ›ŗ  Ā¦  šŸš™  Ā¦  šŸšŒ  Ā¦  šŸš  Ā¦
Ā¦  šŸšš  Ā¦  šŸšŒ  Ā¦  šŸšš  Ā¦  šŸš‚  Ā¦
Ā¦  šŸš›  Ā¦  šŸš‚  Ā¦  šŸšœ  Ā¦  šŸš™  Ā¦
Ā¦  šŸšœ  Ā¦  šŸš›  Ā¦  šŸ›ŗ  Ā¦  šŸš  Ā¦

And, you can use an emoji for the card back, too:

Ā¦  šŸŸ„  Ā¦  šŸŸ„  Ā¦  šŸŸ„  Ā¦  šŸŸ„  Ā¦
Ā¦  ā‡ļø  Ā¦  ā‡ļø  Ā¦  ā‡ļø  Ā¦  ā‡ļø  Ā¦

1 Answer

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 68,454 Points

Very nice!! Great use of the Unicode support with Python!!