CIS-SoftwareDesign-S21 / pro-04-study-resources

A collection of exercises for practicing what is taught in Genki: An Integrated Course in Elementary Japanese.
https://cis-softwaredesign-s21.github.io/pro-04-study-resources/
MIT License
1 stars 1 forks source link

Concentration (card game) #4

Open BlakePatterson opened 3 years ago

BlakePatterson commented 3 years ago

Create a reusable JS function to emulate the classic card game concentration.

BlakePatterson commented 3 years ago

Here is the original proposal:

Concentration is the famous card game where a deck of cards is shuffled & laid out one by one face down on a table and the player picks up two cards each turn. If the two cards match, the player "wins" the round and removes the cards from the table. This can be considered as earning a point. If the two cards do not match, then the player does not win anything that round and the cards must simply be placed face down on the table again, in the same position. The game can be played with multiple people, but when playing alone the goal of the game is to find every matching pair of cards as quickly as possible. I think this game is a perfect choice to implement in げんき Study Resources because it is the embodiment of memorization when it comes to games, so much so that it is quite literally referred to as "Memory", or "Memorization" sometimes. It is also incredibly simple, with a very straightforward set of rules as well as a very easily measurable value of success. My plan would be to have either a vocab word & its translation be a pair, or have a kanji & its reading be a pair. This would not be too complicated in terms of implementation and would be great for helping memorize new vocab words and kanji, so I think it would be a great addition to this app.