sheleoni / hiragana-icecream

A React app for all to learn the basic alphabets in Japanese.
https://hiragana-icecream.sheleoni.com/
MIT License
1 stars 0 forks source link

Increase tide level in hexagon #16

Closed sheleoni closed 1 year ago

sheleoni commented 1 year ago

High-level Idea

image

Implementation

Braindump

UI

Logic

New data objects to make

New states to create

New functions to make

// answer is equivalent to the character shown in the current question.
//  I'm using "answer" here for readability.

function increaseTideLevel (answer, input) {
 if (!onStreak[answer]) { return }
 setTideLevel(tideLevel[answer] + 1) 
}