DE | EN

Graz–Feb. 15, 2025

No pictures today. I spent most of the day writing and debugging a game to help people (including me) to learn the gender associated with nouns.

Techno-nerd talk: I lost about two hours trying to find a bug that had words appearing overlapped and not disappearing when their animation ended. It turned out that I was putting up a dialog box at the end of each game to ask the player if they wanted another game. Each time I displayed the dialog box, I did an addEventListener to the “play again” button. So, after the third game, the button now had three listeners, and all three activated when the player clicked the button, which started three simultaneous games. Solution: add the event listener to the dialog box once only.