# Block falling game

**URL:** <https://discourse.elm-lang.org/t/block-falling-game/5728>\
**Category:** Show and Tell\
**Created:** [May 6, 2020, 1:47am UTC](https://discourse.elm-lang.org/t/block-falling-game/5728 "2020-05-06T01:47:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicklayb](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/nicklayb/32/2549_2.png) [@nicklayb](https://discourse.elm-lang.org/u/nicklayb)\
**Post date:** [May 6, 2020, 1:47am UTC](https://discourse.elm-lang.org/t/block-falling-game/5728/1 "2020-05-06T01:47:29Z")

</div>

Hi guys, I did this simple block falling game in Elm back then as a learning project. The goal is to end up without any blocks in the game. You simply double click sections of block to remove them.

First step in the game is entering the seed you want to use (entering the same value over again would always lead to the same game pattern).

It includes some interesting concepts such as a grid. Tell me what you think!

Demo: [https://kub.sandbox.nboisvert.com/](https://kub.sandbox.nboisvert.com/)  
Source: [https://github.com/nicklayb/kub](https://github.com/nicklayb/kub)

I have other simple projects such as a Game of life and a maze on my website that all uses grids if you’re interested. Here: [https://nboisvert.com/sandboxes](https://nboisvert.com/sandboxes)

After seeing [this post here](https://discourse.elm-lang.org/t/number-counter-game/5725/3) I thought that it might be interesting!

---

<div class="post-metadata">

**Author:** ![Lucas\_Payr](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/lucas_payr/32/4993_2.png) [@Lucas\_Payr](https://discourse.elm-lang.org/u/Lucas_Payr)\
**Post date:** [May 6, 2020, 4:32am UTC](https://discourse.elm-lang.org/t/block-falling-game/5728/2 "2020-05-06T04:32:21Z")

</div>

I’m color blind. I have problems seeing the green and the yellow squares. The easiest fix is to make one of the two darker (for example make green #b1e4b7). Generally, if you want to support color blindness, then turn your screen to gray-scale and check if you can still play the game.

Anyway, I liked your game. It was quite fun 😉

---

<div class="post-metadata">

**Author:** ![BKSpurgeon](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/bkspurgeon/32/3288_2.png) [@BKSpurgeon](https://discourse.elm-lang.org/u/BKSpurgeon)\
**Post date:** [May 6, 2020, 4:32am UTC](https://discourse.elm-lang.org/t/block-falling-game/5728/3 "2020-05-06T04:32:41Z")

</div>

i like it.

> It includes some interesting concepts such as a grid. Tell me what you think!

This is from the point of view of a new user:

- A sentence of the game’s instructions _ **on the game itself** _ would be very handy: otherwise the user (myself) will be confused as to what to do. it took a good 20 seconds for me to work it out in the end.
- Users will likely just want to play the game straight away - in my experience the user won’t care about the seed, and they’ll just want to play. Eliminate or randomize the seed and show them the game!

I’d be interested in seeing your grids implemenation.

---

<div class="post-metadata">

**Author:** ![nicklayb](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/nicklayb/32/2549_2.png) [@nicklayb](https://discourse.elm-lang.org/u/nicklayb)\
**Post date:** [May 6, 2020, 2:07pm UTC](https://discourse.elm-lang.org/t/block-falling-game/5728/4 "2020-05-06T14:07:14Z")

</div>

Might needs a label such as “Level” on the seed then. I prefer to leave it there so you can replay the same level again.

Yeah one sentence should be great to explain, it would definitely helps players understand what has to be done.

---

<div class="post-metadata">

**Author:** ![ChrisWellsWood](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/chriswellswood/32/5293_2.png) [@ChrisWellsWood](https://discourse.elm-lang.org/u/ChrisWellsWood)\
**Post date:** [May 6, 2020, 2:56pm UTC](https://discourse.elm-lang.org/t/block-falling-game/5728/5 "2020-05-06T14:56:08Z")

</div>

Looks fun, very pretty, but I’m also colour blind. Super Puzzle Fighter has the exact same problem, with the same colours, so I took a walk down memory lane to when I used to get frustrated with that as a teenager! Good times! 😃

---

<div class="post-metadata">

**Author:** ![BKSpurgeon](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/bkspurgeon/32/3288_2.png) [@BKSpurgeon](https://discourse.elm-lang.org/u/BKSpurgeon)\
**Post date:** [May 6, 2020, 11:18pm UTC](https://discourse.elm-lang.org/t/block-falling-game/5728/6 "2020-05-06T23:18:53Z")

</div>

This might be helpful/relevant: [https://www.color-blindness.com/2006/04/28/colorblind-population/](https://www.color-blindness.com/2006/04/28/colorblind-population/)

---

<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:** [May 16, 2020, 11:18pm UTC](https://discourse.elm-lang.org/t/block-falling-game/5728/7 "2020-05-16T23:18:56Z")

</div>

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