A horror-themed chess game where you play against the Freemasonry Engine
You have 2 minutes on the clock. Win and you're free. Lose and your system pays the price
This is a fullscreen chess application with a dark atmosphere, creepy sound design, and real consequences for losing. The game locks you in - no Alt+F4, no taskbar, no escape. Your only way out is to beat the engine or hope for a draw
The engine uses iterative deepening with alpha-beta pruning, null move pruning, late move reductions, quiescence search, and killer move heuristics. It thinks within 1 second per move and avoids repetition
- Fullscreen locked interface with keyboard hooks
- Custom procedural audio (ambient drone, move sounds, check alerts)
- Intro sequence with typing animation and countdown
- Real-time chess clock (2 min per side)
- Move history and material tracking
- Piece-square tables for positional evaluation
- King safety evaluation
- Threefold repetition detection
- Visual effects: glitch overlays, screen flicker, cryptic messages, vignette
- Board fade-in animation
- End game overlay showing result (checkmate/timeout/draw)
- MBR operations on loss
- Registry cleanup on loss
- Process becomes critical on loss
- Clean exit on win or draw (restores everything)
MasonRouletteV2/
Core/
Piece.cs - piece types and values
Board.cs - board state, move generation, check detection
Engine/
MasonEngine.cs - search algorithm, evaluation, piece-square tables
UI/
Renderer.cs - board and panel drawing
IntroScreen.cs - intro sequence with typing and countdown
PenaltyScreen.cs - penalty execution logic
Platform/
Audio.cs - procedural sound generation (waveOut overlay)
SystemHooks.cs - keyboard hooks, taskbar control, MBR operations
Chess.cs - main form, game loop, input handling
Program.cs - entry point
Requires Visual Studio with .NET Framework 4.7.2
Open MasonRouletteV2.sln and build
Or from command line:
msbuild MasonRouletteV2.sln
- On launch the app goes fullscreen and hides the taskbar
- Keyboard hooks block Win key, Alt+Tab, Alt+F4, Escape
- MBR is backed up then overwritten with custom boot sector
- Intro screen plays with ambient music and typing animation
- After 5 second countdown the chess game begins
- Player is white with 2 minutes on the clock
- Engine plays black and thinks within 1 second
- If player wins - MBR restored, taskbar restored, clean exit
- If draw - mercy exit, everything restored
- If player loses (checkmate or timeout) - registry deleted, process marked critical, forced exit
All sounds are generated procedurally at runtime using bytebeat and sine wave synthesis. No external audio files needed
The ambient music uses layered drones, FM synthesis, tremolo, and digital noise. Sound effects use separate waveOut handles so they play simultaneously without interrupting each other
This project is for educational and CTF/research purposes only. It performs destructive operations on the system including MBR modification and registry deletion. Do not run this on a machine you care about
USE AT YOUR OWN RISK


