Skip to main content

2 posts tagged with "game"

Posts about games

View All Tags

Alphabet game

· One min read
Filip Tammergård
Software Engineer at Frilans Finans

In this game, you're supposed to write the alphabet as fast as you can. Click the box and start the game by typing the first letter of the alphabet. My highscore is 2.95 seconds. Beat that if you can!

Letter game

· 4 min read
Filip Tammergård
Software Engineer at Frilans Finans

Start the game by clicking the box and typing the letter shown. The clock starts and you get a new random letter to type as fast as you can. Each correct letter is followed by a new random letter, and if you type the wrong letter, the game ends. Go for it!

TL;DR

  • A small typing game built in React with TypeScript.
  • useReducer keeps the game state in one place, with the current mode as idle or running.
  • useEffect reads the saved high score from local storage and picks the first random letter on mount.
  • A custom useInterval hook drives the running clock.