Back to feed
Dev.to
Dev.to
6/23/2026
I Built Simon (the Memory Game) in Vanilla JS + Web Audio

I Built Simon (the Memory Game) in Vanilla JS + Web Audio

Short summary

Build the Simon memory game in vanilla JavaScript using async/await for timed color sequences, Web Audio API for tone generation, and state machines for game logic. No external audio files needed—oscillators generate all four pad frequencies.

  • Teaches async/await patterns through a practical game-building example
  • Uses Web Audio API to generate tones programmatically instead of audio files
  • Demonstrates state machine pattern (showing, input, over) with clear control flow

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Explore more