1
0
Fork
You've already forked cesweeper
0
No description
  • C++ 86.8%
  • Nix 8.3%
  • C 3%
  • Makefile 1.9%
2026年05月01日 00:12:53 +02:00
.vscode add vscode tasks 2025年10月11日 08:14:55 +02:00
src update to clang-format 22, fix clangd 2026年03月14日 04:35:20 +01:00
.clang-format update to clang-format 22, fix clangd 2026年03月14日 04:35:20 +01:00
.gitignore update to clang-format 22, fix clangd 2026年03月14日 04:35:20 +01:00
flake.lock flake.lock: Update 2026年04月30日 23:41:30 +02:00
flake.nix update to clang-format 22, fix clangd 2026年03月14日 04:35:20 +01:00
game-recording.png add an apng of me losing a game 2026年03月14日 12:29:21 +01:00
Makefile added high score list 2025年10月05日 10:45:51 +02:00
README.md add link to peertube video 2026年05月01日 00:12:53 +02:00
screenshot.png Rewrite in C++ 2026年03月02日 23:52:30 +01:00

CESweeper (aka MINESWEP)

This is a rudimentary Minesweeper game for the TI84+ CE color graphing calculator.

An animation of a Minesweeper game

A video of it playing on the actual hardware

How to play

Minesweeper only needs 6 inputs: Up, Down, Left, Right, Flag and Dig (think of the NES controller).

Move the cursor using the arrow keys. Dig up any spot using Enter. Your first move will always land on a 0 space, that is, a safe space with no mines surrounding it. Surrounding 0 spaces will also be dug up automatically, until you have found the border to the mine field.

The dug up spaces on this border will have colorful numbers on them. These numbers show the number of mines hidden below the 8 tiles around this space (that means diagonally, too). Check for any 1s in a receding corner. Since there is only one neighboring space, it must have the mine. Use the + key to mark this space using a flag. Flagged spaces can not be dug up accidentally, and allow you to do chording.

To do this, find a space that still has free tiles around it, but where all mines are marked with flags. Click the numbered tile with the Enter key. All surrounding unmarked tiles will be dug up, and you will hopefully find no mines!

Note

This is called chording because the Windows version of Minesweeper requires you to click both mouse buttons for this. That's not the case here.

Repeat these steps until you have either uncovered all non-mine tiles or correctly flagged all mines. Enter your name into the High Score list, and repeat ad infinitum. Quit anytime using the On key.

Building

Traditional toolchain build

You need to have a working CE Toolchain to build this program. See https://ce-programming.github.io for toolchain and library downloads.

This project uses the graphx library, so you need to build the sprite sheets first. After this, make provides a package you can upload to your calculator.

$ make gfx
$ make
$ make upload # requires tilp2

Nix Flake build

If you have the Nix package manager installed, and enabled Nix Flakes, you can just run this command (you do not even need to clone the repository!):

$ nix build git+https://codeberg.org/libewa/cesweeper.git#packages.ez80-none.cesweeper

The binary will be built in the Nix store, and a result symling in your current directory will point to it.