1
0
Fork 0
wasp-os/wasp
Miguel Rochefort ffff5ae52b apps: play2048: Add the 2048 game application
2048 is a popular sliding block puzzle game in which tiles are combined
to make the number 2048.

It's one of the few games that are enjoyable to play on such a small
form factor.

This started as a port of a TkInter implementation of the 2048 game. I
implemented all of the TkInter APIs used by the game and it worked on
wasp-os without any code change in the game. However, the performance
was very poor and it consumed too much RAM. I have since reimplemented
the whole game from scratch and managed to achieve acceptable
performance, although more improvements could still be made.

Because names in Python can't start with numbers, I had some trouble
naming things. The module is called "ttfe" (two-thousand-forty-eight),
the class name is Play2048App, and the software.py entry is "Play 2048".

Signed-off-by: Miguel Rochefort <miguelrochefort@gmail.com>
[daniel@redfelineninja.org.uk: Renamed the python filename, normalized
the screenshot and included the app in the docs]
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-01-10 18:14:36 +00:00
..
apps apps: play2048: Add the 2048 game application 2021-01-10 18:14:36 +00:00
boards apps: play2048: Add the 2048 game application 2021-01-10 18:14:36 +00:00
drivers drivers: bma421: Switch over to reset_step_counter() 2020-12-31 09:31:47 +00:00
fonts icons, fonts.digits: Switch over to 2-bit RLE encoding 2020-12-28 12:01:15 +00:00
modules bma42x-upy: Implement step counter reset 2020-12-30 09:56:22 +00:00
boot.py Add licensing information for all wasp-os files. 2020-03-22 15:40:18 +00:00
draw565.py draw565: Add lighten/darken functions 2020-12-29 12:30:20 +00:00
gadgetbridge.py Notify level in settings app 2020-11-29 20:20:03 +00:00
icons.py apps: music: Update the application icon 2021-01-10 15:17:27 +00:00
logo.py Add licensing information for all wasp-os files. 2020-03-22 15:40:18 +00:00
main.py Introduction basic notification support 2020-07-19 20:50:33 +01:00
ppg.py ppg: Pull the PPG signal processing into a seperate library 2020-06-25 21:59:32 +01:00
requirements.txt simulator: Introduce fully automatic testint 2020-12-04 20:11:41 +00:00
shell.py Add licensing information for all wasp-os files. 2020-03-22 15:40:18 +00:00
wasp.py system: Allows apps to be registered using strings 2021-01-10 10:37:25 +00:00
widgets.py widgets: ConfirmationView: Restore default font 2021-01-10 18:13:31 +00:00