Skip to content

876N/MasonChess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mason Roulette V2

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

Screenshots

Intro Screen

Intro

Chess Board

Board

MBR on Loss

MBR

What is this

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

Features

  • 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)

Project Structure

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

Build

Requires Visual Studio with .NET Framework 4.7.2

Open MasonRouletteV2.sln and build

Or from command line:

msbuild MasonRouletteV2.sln

How it works

  1. On launch the app goes fullscreen and hides the taskbar
  2. Keyboard hooks block Win key, Alt+Tab, Alt+F4, Escape
  3. MBR is backed up then overwritten with custom boot sector
  4. Intro screen plays with ambient music and typing animation
  5. After 5 second countdown the chess game begins
  6. Player is white with 2 minutes on the clock
  7. Engine plays black and thinks within 1 second
  8. If player wins - MBR restored, taskbar restored, clean exit
  9. If draw - mercy exit, everything restored
  10. If player loses (checkmate or timeout) - registry deleted, process marked critical, forced exit

Audio

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

Disclaimer

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

About

In this beautiful game, you cannot go back; you will win or your Windows will be destroyed

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages