Updating an old game

πŸ•ΉοΈJavaScript tag🌐web components tag Play

Dodecadordle v2

lots of games on Dodecadordle lots of games on Dodecadordle

During the Covid-19 pandemic I created a game called β€˜Dodecadordle” that takes Wordle, Quordle and Octordle to extremes by loading straight into 12 games (based on a dodecahedron), but also allowing players to chose as many as they wantπŸ˜… When I first made the game, it was to learn about web components. I did that and I enjoy using them today, but the code was sluggish and poorly thought out. I was too far into the rabbit hole of components, taking my state from them rather than the other way around. With version 2, I flipped this so DOM updates are based on a central State class and perform much better! Using JavaScript and JSDoc also means there is no build process to contend with, so diving back into the code was super easy and I still benefited from type inferences as I worked. I added a compact mode too, so that playing on a mobile device can be done with its native keyboard input.

the keyboard in compact mode the keyboard in compact mode

See how well you can do at dodecadordle.com!