Algorithmic Math Crossword

An infinitely replayable, dynamically generated math puzzle. This project demonstrates high-performance Rust WebAssembly integration, secure Next.js Server Action architecture, and custom Abstract Syntax Tree (AST) parsing to safely evaluate complex expressions in real-time.

Rust & WebAssembly Backend

Puzzles are generated securely on the server using a compiled Rust WASM binary. Because the generation happens server-side, the solution state is completely hidden from the client browser, preventing reverse-engineering.

Constraint Engine

Utilizes a discrete mathematics coordinate system to distribute operators. This guarantees that operators never sit adjacent and ensures 100% solvable, mathematically sound equations.

Safe AST Parsing

Bypasses the dangerous and commonly blocked JavaScript eval() function in favor of a custom, lightweight token-parsing stack that safely calculates Order of Operations (PEMDAS, including roots and exponents) on the fly.

Math Matrix

Fill the grid with numbers (1-9) and operators (+, -, *, /) so that every row and column mathematically evaluates to the targets.

Difficulty
Rows: 5
Cols: 5