Kolik trilobitu ma jeden trilobyte?

2187



The 2187 game is much more insane, than 2048. Two numbers will disapper and the middle is tripled.
-------------------------------------------------------
|        |        |        |        |        |        |
|        |        |        |        |        |    1   |
|        |        |        |        |        |        |
-------------------------------------------------------
|        |        |        |        |        |        |
|        |        |        |        |        |        |
|        |        |        |        |        |        |
-------------------------------------------------------
|        |        |        |        |        |        |
|        |        |        |        |        |    1   |
|        |        |        |        |        |        |
-------------------------------------------------------
|        |        |        |        |        |        |
|        |        |        |        |        |    1   |
|        |        |        |        |        |        |
-------------------------------------------------------
|        |        |        |        |        |        |
|        |        |    1   |        |        |    3   |
|        |        |        |        |        |        |
-------------------------------------------------------
|        |        |        |        |        |        |
|        |        |        |    3   |    9   |    9   |
|        |        |        |        |        |        |
-------------------------------------------------------

Press key 's' to move all numbers down, and ...
-------------------------------------------------------
|        |        |        |        |        |        |
|        |        |        |        |        |        |
|        |        |        |        |        |        |
-------------------------------------------------------
|        |        |        |        |        |        |
|        |        |        |        |        |        |
|        |        |        |        |        |        |
-------------------------------------------------------
|        |        |        |        |        |        |
|        |        |        |    3   |        |    3   |
|        |        |        |        |        |        |
-------------------------------------------------------
|        |        |        |        |        |        |
|        |        |        |        |        |        |
|        |        |        |        |        |        |
-------------------------------------------------------
|        |        |        |        |        |        |
|        |        |        |        |        |    3   |
|        |        |        |        |        |        |
-------------------------------------------------------
|        |        |        |        |        |        |
|        |        |    1   |    3   |    9   |    9   |
|        |        |        |        |        |        |
-------------------------------------------------------

... three '1' on the right has been converted to one '3'.
Download game written in bash: game2187
Needs linux with bash, bc, any text terminal (xterm will do the job) and working WASDE keys on your keyboard.

Download game written in python (smaller, faster, ignores unused keys): 2187.py
Needs python (tested on linux with python 2.7.3) and text terminal plus WASDE keys.

Don't forget to set executable flag. For shell version it's:
chmod +x game2187
./game2187

For help press key 'h'.