The Cryptography Mind Read Game is an interactive web application adapted from Sagar Kalauni's undergraduate mathematics thesis at Tribhuvan University ("Cryptography Using Matrices"), which was presented at the Nepal Mathematical Society (NMS) and commended by former NMS President Dr. Chet Raj Bhatt.
While it appears to players as a "mind-reading magic trick" that deduces a secretly chosen name or word with 100% deterministic accuracy, the underlying engine is a playful demonstration of matrix transposition, combinatorial coordinate indexing, and invertible character mapping.
๐ฎ Play the Live Interactive Game: https://sagarkalauni.github.io/game/
Let
-
Round 1 (Column Selection): For each character
$s_k$ of a secret word$S = (s_1, s_2, \dots, s_L)$ of length$L$ , the user identifies the column index$j_k \in {1, \dots, c}$ containing$s_k$ . - Matrix Transposition Transformation: The selected columns are extracted and mapped via the transpose operator $\mathbf{M}' = [\mathbf{M}{:, j_1}, \dots, \mathbf{M}{:, j_L}]^\top$, converting column membership into row membership.
-
Round 2 (Unique Intersection): When the user selects the new column indices
$i_k$ in the transformed matrix$\mathbf{M}'$ , each character is uniquely decoded by the bijective coordinate lookup:
- 100% Deterministic Accuracy: Guaranteed mathematical reconstruction of any secret name or word.
- Interactive Step-by-Step UI: Smooth animations guiding players through character length selection and matrix column rounds.
- Classroom Outreach Tool: Used in mathematics and data science orientations to spark student curiosity in linear algebra and cryptography.
git clone https://github.com/SagarKalauni/game.git
cd game
python -m http.server 8000