Mark's 2048+ • BEJEWELED Kinetic Edition • Apple IIe 1984
PUREBASIC 6.41 X64 • ZERO EXTERNAL ASSETS • OPEN SOURCE ON MARKF.DE
PROJECT 01 // SCALING & THE COGNITIVE CEILING
Mark's 2048+ (PureBasic Edition v024)
On a standard 4x4 board with sixteen tiles, anyone can feel like a decent strategist. You park your highest tile in a corner, think two moves ahead, and enjoy the illusion of being master of your own domain. Mark's 2048+ systematically dismantles that comfort zone: inside a single native PureBasic file, the arena scales smoothly from 4x4 through 20x20 and 200x200 all the way up to 1000 x 1000 tiles — one full million simultaneous cells, where each tile maps onto a single pixel on screen.
Playing manually on 4x4 or 5x5 gives you crisp 95-millisecond slide interpolation and an on-demand HINT module via key H: in the bottom-right corner, the 8-bit lucky cat (maneki-neko) stops swaying immediately and points both paws in the direction precomputed by the background Expectimax solver. Press T at any moment to take over a live AI board yourself; press C to dump an uncompressed Full HD BMP (2048_<Grid>_<MaxTile>.bmp) straight into the program directory from any board state.
Why This Program Is No Harmless Puzzle
People talk endlessly about superintelligence, usually in the abstract. In Mark's 2048+, you feel the gap physically right at your keyboard. By 8x8, human foresight collapses; by 30x30, you are just pushing noise around. Switch on the autonomous solvers and Turbo mode (S), and the machine effortlessly sweeps through thousands of state evaluations per second across a grid our biological working memory simply has no registers to hold. That sobering shock is the entire point of the piece.
Architectural Highlights in the Source Code
Logarithmic storage instead of overflow: The board never stores 2048 or 65536 — only the base-2 exponent (1 for 21, 11 for 211). Every merge costs a single +1 addition and doubles directly as the palette lookup index.
Zero-allocation runtime: Every array is statically dimensioned once at startup. ShiftLineInPlace compacts each row and column in place using two pointers, never requesting a single extra byte of heap memory during play.
64-bit bitboard & precomputed row tables: In the 4x4 AI Lab (Mode 5), all sixteen 4-bit tiles pack into a single 64-bit quad register. Every one of the 65,536 possible row transitions is precomputed at launch so the Expectimax search tree and its Zobrist transposition table evaluate moves via pure table lookups.
BEJEWELED — Mark Fischer Kinetic Op-Art Edition (PureBasic v007)
UNITÉS PLASTIQUES // 8x8 TO 80x80M. FISCHER 007/2026
Instead of garish candy graphics, this second PureBasic work by Mark Fischer transforms the Match-3 mechanic into a standalone, framed gallery piece built from calculated color dynamics and geometric discipline. Every single cell is a mathematically constructed form module: a luminous base square enclosing a precision-fitted inner figure — concentric depth disc, tilted axonometric cube, nested square, split hemisphere, or rotating high-contrast singularity.
Via presets (8, 16, 32, 64, 80), fine increments, or the mouse wheel, the canvas scales live up to 80 x 80 = 6,400 kinetic Op-Art units seated inside a collector frame calibrated to 1920x1080 with French matting (passe-partout) and an engraved signature plaque. A single right-click toggles Pure Artwork Mode, hiding all control consoles so your monitor becomes a living kinetic wall mural while the autonomous AI solver sends waves of color and chain reactions rippling through the geometry.
Architecture & Details of Edition v007
Three switchable gallery palettes & room toggle: Switch at the push of a button between a bright alabaster museum wall and a black exhibition space, paired with three exhibition color schemes composed by Mark Fischer (Studio Gold-Cobalt, Kinetic Spectrum, and Monochrome Contrast).
Optical 7x7 precision magnifier: To keep even 6,400 tiny 11x11-pixel cells playable by hand, the right console renders a zero-lag real-time zoom of the cursor region complete with live grid coordinates.
Local O(N²) match evaluator & clean integer geometry: The AI solver evaluates swaps across the 80x80 grid with zero perceptible latency; every drawing primitive is guarded by strict SafeBox/SafeCircle bounds checks and pure integer bit logic for 100% overflow-free execution under PureBasic 6.41.
Where It All Began: 64 Kilobytes of RAM and Self-Playing BASIC Strategies
Both of today's engines trace a direct line back to my earliest programs written in 1983 and 1984 on an Apple IIe. Back then there were no online forums and no ready-made libraries. If you wanted to know which poker strategy won over the long haul, or how to avoid predictable human number patterns in a 6-of-49 lottery so you wouldn't end up splitting a winning payout with a thousand other players, you had to write the simulator byte for byte yourself in Applesoft BASIC.
That 1984 poker program already played thousands of hands against itself, logged probabilities, and discarded weak parameters. The underlying principle hasn't budged a millimeter in over forty years — only the clock speed has changed.