Game port Complex Mines · Native Ports

ComplexSweeper · Complex Mines

Native ports of Qingyuexiao’s complex Minesweeper with circular and Minkowski modes, colour / monochrome themes, and public HarmonyOS, Android and Apple sources in one repository.

Minimal illustration of a puzzle board with four flag colours and complex-number clues

Two modes, two kinds of clues

Circular · 24 display values

The four mines are +1, −1, +i and −i. A neighbourhood sum a+bi displays √(a²+b²); +1 and −i give √2. Expansion requires the correct flag count and the true real/imaginary ratio or its reciprocal.

Minkowski · 39 display values

The hyperbolic unit satisfies j² = +1, with mines +1, −1, +j and −j. A sum a+bj displays √(a²−b²), using imaginary values for negative results. Strict expansion requires the correct count and matching absolute real and j components separately.

Zero is not empty

Cancellation can produce 0 in either mode; +1 and +j also give 0 in Minkowski mode. Only genuinely empty neighbourhoods spread automatically. Reveal all non-mine cells to win.

On touchscreens, tap to cycle flags and hold for 400 ms to clear that cell’s flag and reveal it; flood expansion still skips other flags. On macOS, left-click reveals and right-click flags or expands a number. The first cell and its eight neighbours are safe. Difficulties: 9×9 / 10, 16×16 / 40 and 30×16 / 99 mines.

Three platforms, one set of rules

HarmonyOS, Android and Apple projects share one repository, using ArkTS / ArkUI, Kotlin / Compose and Swift / SwiftUI respectively. Integer rules and identical-seed fingerprints check consistency; each platform implements its own native interface, audio and haptics.

Version & porting scope

As of 18 October 2026, the port is version 1.2.0, aligned with upstream f6b80bb (source version 1.3.0). Both modes keep separate best times and win/loss records. Colour / monochrome switching preserves the game and saves the preference. Custom boards, specified mine proportions, a sound toggle and a separate records window remain unported.

v1.2.0

Qingyuexiao / Rayawa

Qingyuexiao (Yueqing-Chen) created the Zig / Win32 original, rules, atlas and audio; Rayawa maintains the three native ports. Port code is GPL-3.0. Original classic Minesweeper images belong to Microsoft; additions and audio retain their upstream licences, documented in the repository.

Complexweeper · Zig / Win32
Back to projects