# Japan Prefectures Quiz: building a browser memory game with Elm

**URL:** <https://discourse.elm-lang.org/t/japan-prefectures-quiz-building-a-browser-memory-game-with-elm/10481>\
**Category:** Show and Tell\
**Created:** [November 6, 2025, 10:08am UTC](https://discourse.elm-lang.org/t/japan-prefectures-quiz-building-a-browser-memory-game-with-elm/10481 "2025-11-06T10:08:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kvothe](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/kvothe/32/4406_2.png) [@kvothe](https://discourse.elm-lang.org/u/kvothe)\
**Post date:** [November 6, 2025, 10:08am UTC](https://discourse.elm-lang.org/t/japan-prefectures-quiz-building-a-browser-memory-game-with-elm/10481/1 "2025-11-06T10:08:21Z")

</div>

I wrote a new blogpost about what I learnt building a few games with a functional language (Elm), please let me know if you enjoyed it or learnt something new! 🗾🙌🏻

> **[Japan Prefectures Quiz: building a browser memory game with Elm](https://flaviocorpa.com/japan-prefectures-quiz-building-a-browser-memory-game-with-elm.html)**
>
> A blogpost explaining the nice things about building browser games with functional programming!

---

<div class="post-metadata">

**Author:** ![setop](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/setop/32/4331_2.png) [@setop](https://discourse.elm-lang.org/u/setop)\
**Post date:** [November 7, 2025, 9:15am UTC](https://discourse.elm-lang.org/t/japan-prefectures-quiz-building-a-browser-memory-game-with-elm/10481/2 "2025-11-07T09:15:20Z")

</div>

Hi @kvothe

Thanks for sharing.

I really had a good time playing “flags”. Here are some hot takes:

- some countries have the same flag (ex: Norway and Bouvet Island) ; this should accept all answers
- not being an English native, its is hard to have the perfect spelling ; this should accept typos (ex: Libanon for Lebanon)
- when flashing the correct answer this should let the previous flag in place, for visual memorization ; currently, the correct answer is displayed after the next flag being shown
- maybe build a challenge with only the most populated countries ; it is very hard to know all the pacific islands. maybe also build a challenge with only the small ones, as they have quite beautiful flags ; maybe build challenges per continents
- add space repetition : the one you failed appear more often than the one you get right
- and of course add a share button to show off your score with your friends and spread the word 🙂

If you setup an open repo, there could be some contributions.

---

<div class="post-metadata">

**Author:** ![kvothe](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/kvothe/32/4406_2.png) [@kvothe](https://discourse.elm-lang.org/u/kvothe)\
**Post date:** [November 7, 2025, 9:45am UTC](https://discourse.elm-lang.org/t/japan-prefectures-quiz-building-a-browser-memory-game-with-elm/10481/3 "2025-11-07T09:45:02Z")

</div>

Hi @setop, thanks for your feedback! All games are open source, feel free to contribute! 🙌

> **[GitHub - kutyel/elm-countries-quiz: A browser game to learn the flag of all the...](https://github.com/kutyel/elm-countries-quiz)**
>
> A browser game to learn the flag of all the Countries!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/elm_lang/original/1X/50a05e53677a2c3b47776d7abd0f113eb50193a1.png) [@system](https://discourse.elm-lang.org/u/system)\
**Post date:** [November 17, 2025, 9:45am UTC](https://discourse.elm-lang.org/t/japan-prefectures-quiz-building-a-browser-memory-game-with-elm/10481/4 "2025-11-17T09:45:08Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
