Free games for graphing calculators: NumWorks, TI-Nspire CX, Casio fx-CG50 and soon TI-84 Plus CE. Balatro, Celeste, Hollow Knight, Minecraft and more.
C calculatorcalculator-gamescasiochesscrossy-roaddrive-madfx-cg50gamesgeometry-dashgraphing-calculatorndlessnumworksnumworks-appsnumworks-calculatornumworks-gamenumworks-gamestetristi-84-plus-ceti-nspire
UNO: docs and NumPlay's wiring
Mason363b9e0ebe5a2e0
diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex 49628a8f..dc29f093 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build.yml@@ -86,7 +86,7 @@ jobs:make -C games/doodlejump host testmake -C games/stickmanhook host testmake -C games/coreball host test- make -C games/uno test HOST_CC=gcc+ make -C games/uno host testdiff --git a/Makefile b/Makefileindex ae93ef1b..8a91de02 100644--- a/Makefile+++ b/Makefile@@ -18,7 +18,7 @@ PY ?= python3CARGO ?= cargoB = build/data# Conventional games honor a configurable output directory; special layouts are kept local.-GAMES_REDIRECT = balatro blockblast breakout buckshot celeste championisland chess connectfour cookieclicker coreball dinorun donkeykong doodlejump doom dune finalearth2 flappybird flappydunk fnaf g2048 hillclimb hollowknight invaders isaac jetpackjoyride leveldevil minesweeper monkeymart numblocks numpowder numvisuals pacman portal pvz snake sokoban solitaire sonic stickmanhook subway sudoku suika tombofthemask towerblock twoplayer undertale uttt+GAMES_REDIRECT = balatro blockblast breakout buckshot celeste championisland chess connectfour cookieclicker coreball dinorun donkeykong doodlejump doom dune finalearth2 flappybird flappydunk fnaf g2048 hillclimb hollowknight invaders isaac jetpackjoyride leveldevil minesweeper monkeymart numblocks numpowder numvisuals pacman portal pvz snake sokoban solitaire sonic stickmanhook subway sudoku suika tombofthemask towerblock twoplayer undertale uno utttGAMES_OUT = dinorunGAME_REDIRECT_ARG = $(if $(filter $(1),$(GAMES_OUT)),OUT=../../$(B)/games/$(1),BUILD_DIR=../../$(B)/games/$(1))# the RAM the oldest calculator software that runs apps gives them (23.2: 148928 bytes; 25.2 gives 153676).@@ -29,7 +29,7 @@ RAM_LIMIT = 148928# custom builds of Epsilon 25.2's source give apps less: 133652 bytes; every game fits there too, in NumPlay and on# its own (their big buffers are on the stack, 32 KB apart from that RAM, or in the RAM the software has left)CUSTOM_RAM = 133652-BIG_APPS = Celeste HollowKnight Undertale ChampionIsland FinalEarth2 NumPowder NumBlocks NumDrive SubwaySurfers FiveNightsAtFreddys Doom BindingOfIsaac HillClimbRacing PlantsVsZombies SonicTheHedgehog CookieClicker LevelDevil JetpackJoyride StickmanHook DonkeyKong Dune MonkeyMart TombOfTheMask+BIG_APPS = Celeste HollowKnight Undertale ChampionIsland FinalEarth2 NumPowder NumBlocks NumDrive SubwaySurfers FiveNightsAtFreddys Doom BindingOfIsaac HillClimbRacing PlantsVsZombies SonicTheHedgehog CookieClicker LevelDevil JetpackJoyride StickmanHook DonkeyKong Dune MonkeyMart TombOfTheMask UNO# the calculator's space for installed apps: from the end of its software (64 KiB aligned) to 64 KiB before the# end of its 4 MiB slot of flash, 0x903F0000. The software's size sets the start: 0x90200000 is the latest a# NumPlay counts on (1.94 MB, APP_SPACE); Epsilon 26.4 on an N0120 ends at 0x90180000 (2.44 MB, the@@ -52,7 +52,7 @@ APP_SPACE_APPS = HillClimbRacing# the games that fit it (NumPlay draws their text there: see launcher/src/compat.c)UPSILON_RAM = 107674UPSILON_GAMES = crossyroad blockblast suika portal tetris dinorun doodlejump chess flappybird flappydunk towerblock coreball pacman \- snake connectfour solitaire g2048 minesweeper breakout twoplayer invaders sudoku uttt sokoban uno+ snake connectfour solitaire g2048 minesweeper breakout twoplayer invaders sudoku uttt sokoban# NumPlay and its discreet versions: the same app, with another name and icon# on the calculator's home screen. Each one is a release file.@@ -321,6 +321,7 @@ APP_donkeykong = $(B)/games/donkeykong/donkeykong.nwa:DonkeyKong.nwaAPP_dune = $(B)/games/dune/dune.nwa:Dune.nwaAPP_monkeymart = $(B)/games/monkeymart/monkeymart.nwa:MonkeyMart.nwaAPP_tombofthemask = $(B)/games/tombofthemask/tombofthemask.nwa:TombOfTheMask.nwa+APP_uno = $(B)/games/uno/uno.nwa:UNO.nwa# the big games' modules are made from these (the kit)$(foreach g,$(XL_GAMES),$(eval MOD_$(g) = $$(word 1,$$(subst :, ,$$(APP_$(g))))))@@ -354,6 +355,7 @@ apps: | $(B)$(MAKE) -C games/dune build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/dune$(MAKE) -C games/monkeymart build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/monkeymart$(MAKE) -C games/tombofthemask build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/tombofthemask+ $(MAKE) -C games/uno build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/unocd games/tetris/tetris && NWLINK="$(NWLINK)" $(CARGO) build --release --quietcp $(word 1,$(subst :, ,$(APP_numdash))) $(B)/apps/$(word 2,$(subst :, ,$(APP_numdash)))cp $(word 1,$(subst :, ,$(APP_crossyroad))) $(B)/apps/$(word 2,$(subst :, ,$(APP_crossyroad)))@@ -385,6 +387,7 @@ apps: | $(B)cp $(word 1,$(subst :, ,$(APP_dune))) $(B)/apps/$(word 2,$(subst :, ,$(APP_dune)))cp $(word 1,$(subst :, ,$(APP_monkeymart))) $(B)/apps/$(word 2,$(subst :, ,$(APP_monkeymart)))cp $(word 1,$(subst :, ,$(APP_tombofthemask))) $(B)/apps/$(word 2,$(subst :, ,$(APP_tombofthemask)))+ cp $(word 1,$(subst :, ,$(APP_uno))) $(B)/apps/$(word 2,$(subst :, ,$(APP_uno)))arm-none-eabi-strip --strip-unneeded $(B)/apps/Tetris.nwaSTD_APPS = $(foreach g,$(STD_GAMES),$(B)/apps/$(NWA_$(g)))@@ -456,5 +459,6 @@ clean:-$(MAKE) -C games/dune clean-$(MAKE) -C games/monkeymart clean-$(MAKE) -C games/tombofthemask clean+ -$(MAKE) -C games/uno clean-cd games/tetris/tetris && $(CARGO) clean-$(foreach g,$(STD_GAMES),$(MAKE) -C games/$(g) clean;)diff --git a/README.md b/README.mdindex f9541a69..ece2d770 100644--- a/README.md+++ b/README.md@@ -5,7 +5,7 @@<h1 align="center">NumPlay</h1><p align="center">- <b>30 free games for your NumWorks calculator, in one app.</b><br>+ <b>29 free games for your NumWorks calculator, in one app.</b><br>Plus 21 big games that install on their own. For the N0110, N0115 and N0120, in English, French and Chinese.</p>@@ -82,7 +82,6 @@ All of these come in one app, **NumPlay.nwa**.<td align="center"><a href="games/sudoku/README.md"><img src="docs/media/thumb_sudoku.png" width="120" alt="Sudoku"><br><b>Sudoku</b></a></td><td align="center"><a href="games/uttt/README.md"><img src="docs/media/thumb_uttt.png" width="120" alt="Ultimate Tic-Tac-Toe"><br><b>Ultimate Tic-Tac-Toe</b></a></td><td align="center"><a href="games/sokoban/README.md"><img src="docs/media/thumb_sokoban.png" width="120" alt="Sokoban"><br><b>Sokoban</b></a></td>- <td align="center"><a href="games/uno/README.md"><img src="docs/media/thumb_uno.png" width="120" alt="UNO"><br><b>UNO</b></a></td></tr></table>@@ -307,8 +306,6 @@ Read **[Make your own NumWorks game](docs/make-a-game.md)** to go from there, an## Credits-- **[Bobydeluxe](https://github.com/Bobydeluxe)** made **[UNO](games/uno/README.md)** for NumPlay: play against one to three bots, choose table rules, and win by emptying your hand. Card and table art by **[AlexDer](https://alexder.itch.io/uno-card-game-asset-pack)**. UNO belongs to Mattel; this is an unofficial fan adaptation.-NumPlay is a fan project, made out of love for these games and for the NumWorks calculator. If you enjoy a game here, go play the original and support the people who made it. NumWorks also has a great community of people making games by hand: try [Numcraft](https://github.com/yannis300307/NumcraftRust), [Celeste Classic](https://github.com/BenchatonDev/Celeste-Numworks), [Tatone26's All the Apps](https://github.com/Tatone26/Numworks-games), the apps on [Nwagyu](https://nwagyu.org/guide/) and [yannis300307's list](https://gist.github.com/yannis300307/9123136f90877107ec0d49ba96b303e5).- **[Tatone26](https://github.com/Tatone26/Numworks-games)**'s **All the Apps** inspired NumPlay's list of classics. Flappy Bird, Pac-Man, Snake, Connect Four, Solitaire and 2048 are written in C for NumPlay and keep its options, with no code copied from it. Tetris is Tatone26's own, which they released into the public domain, adapted for NumPlay.diff --git a/docs/media/thumb_uno.png b/docs/media/thumb_uno.pngindex 73542b8e..c9196927 100644Binary files a/docs/media/thumb_uno.png and b/docs/media/thumb_uno.png differdiff --git a/docs/media/uno.gif b/docs/media/uno.gifnew file mode 100644index 00000000..341eae3aBinary files /dev/null and b/docs/media/uno.gif differdiff --git a/docs/play.md b/docs/play.mdindex 69be8759..76432b24 100644--- a/docs/play.md+++ b/docs/play.md@@ -907,27 +907,3 @@ NumVisuals comes on its own, as NumVisuals.nwa (its backgrounds are also on NumPGame Boy, Game Boy Color, NES, Master System and Game Gear games you pick on NumPlay's customizer website. Open a game for New game, or Resume game from one of its 4 save slots. In a game, Backspace opens Retro-Go's menu: Save & Continue, Save & Quit, Load game, Reset and Options, where the picture can be 1x, Fit or Full screen. The cartridges' own saves are kept as well.<br clear="right">---## UNO--Play against one, two or three bots. Create a table in three steps: Players,-Rules, then Ready. The first player with no cards wins; there are no points.-Classic card effects are the default, with optional +2/+4 stacking, drawing until-playable, forced drawn play and automatic UNO. Stacked +4 disables challenges.--| Key | What it does |-| --- | --- |-| **Left / Right** | Select a card, including while bots play |-| **OK / EXE** | Play the selected card or confirm a choice |-| **Up / Down** | Action buttons / return to your hand |-| **1** | Draw or accept a draw penalty |-| **2** | Keep the drawn card, if allowed |-| **0** | Call UNO or catch a bot that forgot |-| **Back** | Pause; return from menus |-| **Home / Power** | Save and quit |--The turn banner and gold outline identify the current player. DRAW and DISCARD-are separate piles; the color tile names the active color. Gold dots mark cards-you can play. The selected card is enlarged, with its name and playability below.-`Play again` keeps the same table rules. [Full rules and credits](../games/uno/README.md).diff --git a/games/games.json b/games/games.jsonindex 42aa0d36..75ccd0e6 100644--- a/games/games.json+++ b/games/games.json@@ -570,25 +570,6 @@"app": "Sokoban.nwa","repo": "https://github.com/Mason363/NumPlay/tree/main/games/sokoban"},- {- "id": "uno",- "rank": 30,- "title": "UNO",- "tagline": "Empty your hand against up to three bots",- "credit": "Game made by Bobydeluxe",- "top": "0x347052",- "bottom": "0x0B2925",- "accent": "0xFFD75B",- "colors": 32,- "records": [- "uno.sav"- ],- "shots": [- "docs/gameplay.png"- ],- "app": "UNO.nwa",- "repo": "https://github.com/Mason363/NumPlay/tree/main/games/uno"- },{"id": "retrogo","rank": 30,@@ -696,7 +677,7 @@},{"id": "championisland",- "rank": 18,+ "rank": 19,"title": "Champion Island","tagline": "Seven sports, one island","credit": "Based on Google's Champion Island Games",@@ -718,7 +699,7 @@},{"id": "finalearth2",- "rank": 19,+ "rank": 20,"title": "The Final Earth 2","tagline": "Build a city in space","credit": "Based on the game by Florian van Strien",@@ -740,7 +721,7 @@},{"id": "numpowder",- "rank": 14,+ "rank": 15,"title": "NumPowder","tagline": "Sand, water, fire and more","credit": "Inspired by The Powder Toy",@@ -794,7 +775,7 @@},{"id": "fnaf",- "rank": 12,+ "rank": 13,"title": "Five Nights at Freddy's","tagline": "Survive five nights","credit": "Based on the game by Scott Cawthon",@@ -855,7 +836,7 @@},{"id": "isaac",- "rank": 16,+ "rank": 17,"title": "The Binding of Isaac","tagline": "Cry through the basement","credit": "Based on the game by Edmund McMillen",@@ -877,7 +858,7 @@},{"id": "hillclimb",- "rank": 17,+ "rank": 18,"title": "Hill Climb Racing","tagline": "Drive up, don't flip","credit": "Based on Hill Climb Racing by Fingersoft",@@ -921,7 +902,7 @@},{"id": "sonic",- "rank": 15,+ "rank": 16,"title": "Sonic the Hedgehog","tagline": "Run through six zones","credit": "Based on the game by Sonic Team",@@ -942,7 +923,7 @@},{"id": "cookieclicker",- "rank": 21,+ "rank": 22,"title": "Cookie Clicker","tagline": "Bake billions of cookies","credit": "Based on Cookie Clicker by Orteil",@@ -963,7 +944,7 @@},{"id": "leveldevil",- "rank": 20,+ "rank": 21,"title": "Level Devil","tagline": "Run to the door","credit": "Based on Level Devil by Unept",@@ -1026,7 +1007,7 @@},{"id": "donkeykong",- "rank": 13,+ "rank": 14,"title": "Donkey Kong","tagline": "Climb the girders and save Pauline","credit": "Based on Donkey Kong by Nintendo",@@ -1107,5 +1088,26 @@"repo": "https://github.com/Mason363/NumPlay/tree/main/games/tombofthemask","default": false,"xl": true+ },+ {+ "id": "uno",+ "rank": 12,+ "title": "UNO",+ "tagline": "Match the cards, shout UNO",+ "credit": "Based on UNO by Mattel",+ "top": "0x1F6B4A",+ "bottom": "0x0B3324",+ "accent": "0xE53935",+ "colors": 16,+ "records": [+ "uno.sav",+ "uno_saves.py"+ ],+ "shots": [+ "docs/shot.png"+ ],+ "repo": "https://github.com/Mason363/NumPlay/tree/main/games/uno",+ "default": false,+ "xl": true}]diff --git a/games/uno/README.md b/games/uno/README.mdindex a399bd0e..6cfbb98d 100644--- a/games/uno/README.md+++ b/games/uno/README.md@@ -1,135 +1,88 @@-# UNO--A native, English-language UNO game for NumPlay and NumWorks. One human plays-against one, two or three bots on a 320 × 240 card table, using AlexDer's card art.-No browser, sound files, full-screen framebuffer or runtime asset download is needed.--This is an unofficial fan adaptation. Game made by **Bobydeluxe**; card and table-art by **AlexDer**. See [ASSETS.md](ASSETS.md) for asset provenance.--## Play--Install `output/UNO.nwa` with the usual NumWorks external-app installer.-`Continue` restores the saved match; `New game` opens the table settings.-The app asks before replacing an unfinished game. Changing settings does not-alter the rules of an existing match.--Creating a table has three visible steps: **Players**, **Rules**, then **Ready**.-The first step previews your seat and the bot seats while you choose the player-count and bot level. The second keeps all five variants on screen-with On/Off switches and an explanation for the selected rule. The last step-summarizes the whole table before `Deal cards`. Back returns to the previous-step without discarding your choices.--During play, bots sit around the piles, with the current player outlined in-gold. A turn banner stays at the top. `DRAW` and `DISCARD` label the separate-piles, and a named color tile shows the active color, including after Wilds.-Your hand stays in its own lower area; the selected card is enlarged and drawn-in front of its neighbors. Its name, index and playability stay visible below.-You can browse your hand while the bots take their turns. Action buttons show-their shortcuts and keyboard focus skips unavailable actions.--| Key | Action |+> **UNO is a [NumPlay](../../README.md) game that comes on its own.** It is too big to fit next to NumPlay on the calculator. Get `UNO.nwa` from the [latest release](https://github.com/Mason363/NumPlay/releases/latest).++<p align="center">+ <img src="src/icon.png" width="84" alt="UNO icon">+</p>++<h1 align="center">UNO</h1>++<p align="center">+ <b>The card game against one to three bots, on the NumWorks calculator.</b><br>+ The official rules, the 108-card deck and scoring to 500 points.+</p>++<p align="center">+ <a href="https://github.com/Mason363/NumPlay/releases/latest/download/UNO.nwa"><b>Download UNO.nwa</b></a>+ · <a href="#controls">Controls</a>+</p>++<p align="center">+ <img src="../../docs/media/uno.gif" width="640" alt="UNO: the bots play their cards in turn, then you pick a card in your hand and play it">+</p>++## Highlights++* **The official rules:** the 108-card deck, Skip, Reverse, Draw Two, Wild and Wild Draw Four, with the first card's effect, drawing a card you may play at once, and the two-player rules (Reverse and Skip let you play again).+* **The Wild Draw Four challenge:** it's only allowed with no card of the colour in play, but anyone can bluff. Challenge it and see the hand: a bluffer draws 4, otherwise you draw 6.+* **UNO!** Say it as you play your next-to-last card. Forget, and a bot may catch you for 2 cards. Catch a bot that forgot.+* **Scoring to 500:** the winner of each hand scores the cards left in the others' hands, and the deal moves to the left, until someone has 500 points. Or play a single hand.+* **Bots at three levels:** Easy plays any card that goes; Normal saves its Wilds and stops a player about to go out; Hard also counts the cards it has seen, plays to the colours you lack and may bluff.+* **House rules, if you want them:** stacking Draw Twos or Wild Draw Fours, drawing until you can play, having to play a drawn card, and UNO said for everyone. All off by default.+* **Saved as you go:** Home saves and quits, from anywhere. Your game is also copied into `uno_saves.py`, so installing the app again doesn't erase it.++<table>+ <tr>+ <td align="center"><img src="docs/shot.png" width="390" alt="Your turn at a table of four"><br><sub>Your turn: the cards that go are lit</sub></td>+ <td align="center"><img src="docs/colour.png" width="390" alt="Calling a colour"><br><sub>A Wild: call a colour</sub></td>+ </tr>+ <tr>+ <td align="center"><img src="docs/challenge.png" width="390" alt="A Wild Draw Four played on you"><br><sub>A Wild Draw Four: take it or challenge</sub></td>+ <td align="center"><img src="docs/reveal.png" width="390" alt="The challenged hand"><br><sub>The challenged hand, shown to you</sub></td>+ </tr>+ <tr>+ <td align="center"><img src="docs/uno.png" width="390" alt="Two cards left"><br><sub>Two cards left: time to say UNO</sub></td>+ <td align="center"><img src="docs/scores.png" width="390" alt="The scores after a hand"><br><sub>A hand won, on the way to 500</sub></td>+ </tr>+ <tr>+ <td align="center"><img src="docs/setup.png" width="390" alt="A new game"><br><sub>A new game: players, bots, length and house rules</sub></td>+ <td align="center"><img src="docs/title.png" width="390" alt="The title screen"><br><sub>The title screen</sub></td>+ </tr>+</table>++## How to play++Match the top card of the discard pile by colour, number or symbol, or play a Wild, which goes on anything. You can also draw a card instead; if it goes, you may play it at once. The coloured frame round the discard pile shows the colour to match, also after a Wild.++Skip makes the next player miss a turn, Reverse turns play round, and Draw Two makes the next player draw 2 and miss a turn. With a Wild you call the colour. A Wild Draw Four also makes the next player draw 4 and miss a turn, and it's only allowed when you have no card of the colour in play. The next player may challenge it: if it was a bluff, its player draws the 4; if not, the challenger draws 6.++Press **shift** as you play your next-to-last card, to say UNO. If you forget, anyone who catches you before the next player starts makes you draw 2; say it in time and you're safe. When a bot forgets, **shift** catches it. The first to play all their cards wins the hand and scores the cards left in the others' hands: numbers at face value, Skip, Reverse and Draw Two 20, Wilds 50. The first to 500 points wins the game.++## Controls++| Key | What it does || --- | --- |-| Left / Right | Select a card; hold to scroll large hands |-| OK / EXE | Play the selected card or confirm a menu item |-| Up / Down | Enter the action buttons / return to your hand |-| 1 | Draw a card, or accept a pending draw penalty |-| 2 | Keep the card you just drew, if permitted |-| 0 | Call UNO, prepare the call before playing from two cards, or catch a bot |-| Back | Pause; return from menus |-| Home / Power | Save and exit safely |--Gold dots mark playable cards. The lifted card has a readable native-text name.-The hand scrolls to show every card; it is never truncated at a small hand limit.-The color tile is the active color, including after a Wild. `S`, `R`, `+2`, `W`-and `+4` in the card corners identify the special cards.--## Classic rules--This version plays **one game, won by the first empty hand**, using the-classic 108-card deck and Mattel's-[classic instructions](https://service.mattel.com/instruction_sheets/B0001-Eng.pdf)-and [two-player instructions](https://service.mattel.com/instruction_sheets/53641.pdf)-for card effects. There is no point system or multi-round target. It excludes-the extra customizable cards in some newer physical editions.--- Deal seven cards each. A high-card draw selects the initial dealer; subsequent- rounds move the dealer clockwise. Opening action cards are applied, and an- opening +4 is returned to the shuffled draw pile.-- Match color, number or symbol. You may draw instead of playing. After drawing,- you may only play the newly drawn card, or keep it and end the turn.-- Skip skips the next player. Reverse changes direction; with two players it- acts as a Skip. +2 makes the next player draw two and miss their turn.-- Wild chooses the color. +4 is legal only if its player holds no card of the- active color. Bluffing is possible: only the target may challenge. A guilty- offender draws four and the target keeps their turn; otherwise the challenger- draws six and loses their turn. A human challenge reveals the offender's hand.-- Call UNO when playing down to one card. You can prepare the call with two- cards or call immediately afterward. A missed call is only penalized when- caught before the next player draws or plays; the penalty is two cards. Bots- have a reaction delay, and sometimes miss calls or fail to catch them.-- The first player with no cards wins the game. A final +2/+4 and any challenge- are resolved before showing the winner. `Play again` starts a fresh game with- the same table rules, or you can return to the menu.-- Exhausted draw piles recycle all discards except the top card. In the rare- finite-deck situation where everyone is blocked with nothing left to draw,- redeal the cards.--## Optional house rules--Settings clearly label altered tables as **Custom**. Each option defaults to off.--| Option | Behavior |-| --- | --- |-| Stack +2 | Play one +2 on a pending +2; the accumulated penalty passes on |-| Stack +4 | Play one +4 on a pending +4; the last chosen color applies |-| Draw until playable | Continue drawing until a playable card appears or the pile cannot refill |-| Force drawn play | A playable drawn card must be played; a drawn Wild still requires a color choice |-| Automatic UNO | Call UNO automatically for every player |--Stacking never mixes +2 and +4, and stops after a last card: its penalty is paid-before the win is confirmed. **Stacked +4 disables challenges**, a stated house-rule choice-that avoids combining incompatible penalty/challenge interpretations.-`Classic` resets all variants; player count and bot difficulty remain independent-choices. Every table uses the same first-empty-hand winning condition.--Casual bots choose less carefully. Normal bots favor their remaining colors and-prioritize action cards. Clever bots also consider public opponent card counts and-the direction of play when choosing action cards. Bots never inspect opponents'-hidden hands to decide a play or challenge.--## Build and validate--Requires ARM GCC, nwlink 1.0.0, Python and pyelftools. Pillow is only needed to-regenerate assets from the user's original ZIP. Generated assets are committed;-the ZIP is not needed for a normal build.--```sh-python3 tools/build.py --toolchain /path/to/arm/bin --nwlink /path/to/nwlink-python3 tools/test.py --cc cc-python3 tests/test_arm.py --nwlink /path/to/nwlink-python3 tests/test_integration.py --nwlink /path/to/nwlink-```--`make build`, `make test` and `make test-arm` wrap these commands. `HOST_CC`,-`PYTHON`, `NWLINK` and `TOOLCHAIN` can be overridden.-The build creates `output/UNO.nwa`, a symbol-bearing debug NWA, installed binaries-for four firmware/RAM profiles, and `output/module.o` for NumPlay launcher-integration. NumPlay includes UNO in its catalogue and exports the standalone-app as `UNO.nwa`; the module uses the shared graphics, storage and backup.--The engine uses a bounded 108-card deck and fixed-size hands, with no heap.-Card sprites share a 31-color palette and use transparent row RLE; only a single-44-byte row is decoded at a time. A small original table sample is smoothly-scaled, and the native fonts draw the UI directly. LCD drawing uses 16-row-strips, and an unchanged table sleeps instead of redrawing continuously.--Saves use a versioned 768-byte record with explicit little-endian fields, CRC32-and full deck/state validation before loading. Full-storage failures offer retry-or an explicit exit without saving. Standalone builds use NumPlay's existing-Epsilon/Upsilon safe-exit and storage helpers.-Save version 2 also reads version 1: ongoing hands are retained, old point totals-and targets are dropped, and a previously won round becomes a finished game.--See [VALIDATION.md](VALIDATION.md) for measured size and validation limits.+| Left and Right | Pick a card in your hand |+| OK | Play the card |+| Up | Draw a card, keep the card you drew, or take the cards you have to |+| shift | Say UNO, or catch a bot that forgot |+| Back | Pause (Resume, New game, How to play, Quit game) |+| Home | Save and quit |++## Good to know++* **On its own:** UNO is too big to fit next to NumPlay. Installing it from the NumWorks website swaps out NumPlay and the other apps, and installing NumPlay again swaps it back out.+* **The classic deck:** the 108 cards of the classic game, without the blank cards and Wild Shuffle Hands of newer decks.+* **The table:** you and one to three bots. The original takes up to ten players.++## Credits++Inspired by [UNO](https://www.mattel.com/brands/uno), the card game by Mattel, not affiliated with Mattel. Go play the original with your friends, or the official app.++* The rules and scoring follow Mattel's instruction sheet. The cards are drawn by the game itself, after the classic deck's look, and the text uses NumPlay's **Nunito** font (SIL Open Font License).+* The calculator adaptation is by **[Bobydeluxe](https://github.com/Bobydeluxe)**, who brought it to NumPlay.++Made by Mason Chen as part of NumPlay.++## License++The game's code is licensed under the GNU General Public License v3.0: see the `LICENSE` file at the root of the repository. UNO is a trademark of Mattel.diff --git a/games/uno/docs/challenge.png b/games/uno/docs/challenge.pngindex 15c6de95..4b5c7a02 100644Binary files a/games/uno/docs/challenge.png and b/games/uno/docs/challenge.png differdiff --git a/games/uno/docs/colour.png b/games/uno/docs/colour.pngnew file mode 100644index 00000000..f93acbeeBinary files /dev/null and b/games/uno/docs/colour.png differdiff --git a/games/uno/docs/gameplay.png b/games/uno/docs/gameplay.pngdeleted file mode 100644index 3a7e4bfa..00000000Binary files a/games/uno/docs/gameplay.png and /dev/null differdiff --git a/games/uno/docs/interface.png b/games/uno/docs/interface.pngdeleted file mode 100644index 6badf078..00000000Binary files a/games/uno/docs/interface.png and /dev/null differdiff --git a/games/uno/docs/launcher.png b/games/uno/docs/launcher.pngdeleted file mode 100644index 27566393..00000000Binary files a/games/uno/docs/launcher.png and /dev/null differdiff --git a/games/uno/docs/menu.png b/games/uno/docs/menu.pngdeleted file mode 100644index b3cd969b..00000000Binary files a/games/uno/docs/menu.png and /dev/null differdiff --git a/games/uno/docs/result.png b/games/uno/docs/result.pngdeleted file mode 100644index 5a5a5fff..00000000Binary files a/games/uno/docs/result.png and /dev/null differdiff --git a/games/uno/docs/reveal.png b/games/uno/docs/reveal.pngnew file mode 100644index 00000000..c664a687Binary files /dev/null and b/games/uno/docs/reveal.png differdiff --git a/games/uno/docs/review.png b/games/uno/docs/review.pngdeleted file mode 100644index 43df710a..00000000Binary files a/games/uno/docs/review.png and /dev/null differdiff --git a/games/uno/docs/scores.png b/games/uno/docs/scores.pngnew file mode 100644index 00000000..e9588a2cBinary files /dev/null and b/games/uno/docs/scores.png differdiff --git a/games/uno/docs/settings.png b/games/uno/docs/settings.pngdeleted file mode 100644index 4d8ad0a9..00000000Binary files a/games/uno/docs/settings.png and /dev/null differdiff --git a/games/uno/docs/setup.png b/games/uno/docs/setup.pngnew file mode 100644index 00000000..392608d5Binary files /dev/null and b/games/uno/docs/setup.png differdiff --git a/games/uno/docs/shot.png b/games/uno/docs/shot.pngnew file mode 100644index 00000000..0457c60fBinary files /dev/null and b/games/uno/docs/shot.png differdiff --git a/games/uno/docs/table-rules.png b/games/uno/docs/table-rules.pngdeleted file mode 100644index 78811582..00000000Binary files a/games/uno/docs/table-rules.png and /dev/null differdiff --git a/games/uno/docs/title.png b/games/uno/docs/title.pngnew file mode 100644index 00000000..b2778179Binary files /dev/null and b/games/uno/docs/title.png differdiff --git a/games/uno/docs/uno.png b/games/uno/docs/uno.pngnew file mode 100644index 00000000..a91e7309Binary files /dev/null and b/games/uno/docs/uno.png differdiff --git a/games/uno/docs/variants.png b/games/uno/docs/variants.pngdeleted file mode 100644index fe5818b1..00000000Binary files a/games/uno/docs/variants.png and /dev/null differdiff --git a/launcher/lang/fr.txt b/launcher/lang/fr.txtindex fd2b329d..bdef86b6 100644--- a/launcher/lang/fr.txt+++ b/launcher/lang/fr.txt@@ -135,6 +135,4 @@ Needs Il manqueSokoban SokobanPush every box home Pousse chaque caisse à sa place-Levels: Microban by David W. Skinner Niveaux : Microban de David W. Skinner-Empty your hand against up to three bots Vide ta main face à un, deux ou trois bots-Game made by Bobydeluxe Jeu créé par Bobydeluxe+Levels: Microban by David W. Skinner Niveaux : Microban de David W. Skinner\ No newline at end of filediff --git a/launcher/lang/zh.txt b/launcher/lang/zh.txtindex d02430a1..8194210b 100644--- a/launcher/lang/zh.txt+++ b/launcher/lang/zh.txt@@ -134,6 +134,4 @@ Needs 内存还差Sokoban 推箱子Push every box home 把每个箱子推到位-Levels: Microban by David W. Skinner 关卡:David W. Skinner 的 Microban-Empty your hand against up to three bots 与一至三个电脑对手对战,先出完手牌获胜-Game made by Bobydeluxe 游戏制作:Bobydeluxe+Levels: Microban by David W. Skinner 关卡:David W. Skinner 的 Microban\ No newline at end of filediff --git a/tests/test_games.py b/tests/test_games.pyindex 36b62614..79ff3e9d 100644--- a/tests/test_games.py+++ b/tests/test_games.py@@ -42,10 +42,6 @@ def every(t0, t1, step, key, d=80):# name: (nwa, save record, first run keys, home time, second run keys, home time)GAMES = {- # Create the three-step table, deal, then resume it after reinstall.- "uno": ("UNO.nwa", "uno.sav",- presses((700,"ok"),(1000,"up"),(1300,"ok"),(1600,"up"),(1900,"ok"),(2200,"ok")), 3200,- presses((700,"ok")), 1800),"crossyroad": ("CrossyRoad.nwa", "crossyroad.sav",every(1500, 9000, 350, "up"), 12000, every(1500, 4000, 400, "up"), 6000),"chess": ("NumChess.nwa", "numchess.sav", presses((1500, "ok"), (2500, "ok")), 4000, [], 2500),@@ -250,6 +246,10 @@ GAMES = {"tombofthemask": ("TombOfTheMask.nwa", "tombofthemask.sav",presses((1500, "ok"), (2500, "ok"), (3200, "up"), (3800, "left"), (4400, "back")), 5500,presses((1500, "ok"), (2500, "up"), (3200, "back")), 4500),+ # the title, New game, Deal, how to play (the first time: Back skips it), then the table: the bots play; Home+ # keeps the game. Next time, from the copy, Continue: back at the table, quit with On/Off+ "uno": ("UNO.nwa", "uno.sav", presses((1500, "ok"), (2200, "ok"), (2900, "back")), 6000,+ presses((1500, "ok")), 4000),# a level, its message, then play; then back to the level select"portal": ("PortalReturns.nwa", "portal.sav",presses((1500, "ok"), (2500, "ok"), (3500, "ok")) + every(4000, 7000, 400, "right", 300), 8000,@@ -315,7 +315,7 @@ COPIES = {"championisland": "champion_saves.py", "numblocks": "numblocks_saves.p"cookieclicker": "cookieclicker_saves.py", "leveldevil": "leveldevil_saves.py","jetpackjoyride": "jetpackjoyride_saves.py", "stickmanhook": "stickmanhook_saves.py","donkeykong": "donkeykong_saves.py", "dune": "dune_saves.py", "monkeymart": "monkeymart_saves.py",- "tombofthemask": "tombofthemask_saves.py"}+ "tombofthemask": "tombofthemask_saves.py", "uno": "uno_saves.py"}def dk_frames(v):@@ -334,8 +334,6 @@ def dk_frames(v):CHECKS = {- "uno": (lambda v: len(v) == 768 and v[:5] == b"UNO\2\1" and not any(v[671:679]),- lambda v: len(v) == 768 and v[:5] == b"UNO\2\1" and not any(v[671:679])),# the island remembers where Lucky was; after the reinstall, from the copy"championisland": (lambda v: v[:3] == b"CI1" and b"PLAYER_LOC" in v,) * 2,"numdrive": (lambda v: v[27] == 1, lambda v: v[27] == 0), # last played level@@ -462,6 +460,10 @@ CHECKS = {# progress at 268); after the reinstall, from the copy, twice"tombofthemask": (lambda v: len(v) == 296 and v[:4] == b"TOTM" and v[288] & 1 and struct.unpack_from("<I", v, 268)[0] == 1,lambda v: len(v) == 296 and v[:4] == b"TOTM" and struct.unpack_from("<I", v, 268)[0] == 2),+ # "UNO1", version 1, its size (728): how to play shown (guide at 12) and a game going (has_game at 13), four at+ # the table (16) in its first hand (hands at 682); after the reinstall, from the copy, the same game goes on+ "uno": (lambda v: len(v) == 728 and v[:4] == b"UNO1" and v[12] == 1 and v[13] == 1 and v[16] == 4+ and struct.unpack_from("<H", v, 682)[0] == 1,) * 2,"breakout": (lambda v: len(v) == 12 and v[:2] == b"B\2" and v[4] == 1 and struct.unpack_from("<I", v, 8)[0] >= 10,lambda v: v[4] == 0 and struct.unpack_from("<I", v, 8)[0] >= 1), # best kept, shake off# Air Hockey and the easy computer chosen; then the normal computer and Tanks, the tallies keptdiff --git a/tools/release.py b/tools/release.pyindex f054f180..0b1c27c2 100644--- a/tools/release.py+++ b/tools/release.py@@ -48,6 +48,7 @@ ALONE = {"dune": ("Dune", "roll down the dunes and fly over the line, with the shop's 26 balls and 7 landscapes"),"monkeymart": ("Monkey Mart", "run a grocery mart as a monkey, both marts: crops, animals, machines and workers"),"tombofthemask": ("Tomb of the Mask", "dash through the tomb: the endless arcade climb and all 200 stages, with the 16 masks"),+ "uno": ("UNO", "the card game against one to three bots, with the official rules and scoring to 500"),}VARIANTS = [("NumPlay-Invisible.nwa", "The same app, hidden: a blank icon with no name"),