Anya can read your mind... or can she? 👀
A remastered version of a college-era Pygame project built while I was learning the library in 2022.
AnyaPath is a small mind-reading game inspired by Anya Forger from Spy × Family, where Anya guesses any word you're secretly thinking of using a fun matrix-based trick.
This project was originally created in 2022 while I was learning Pygame during college. Years later, I revisited it to refactor, redesign, and modernize the game while preserving the original gameplay idea.
The goal of this remaster was simple:
Keep the charm of the original, but make the codebase and experience feel much more polished.
| Original (2022) | Remastered |
|
|
| Original | Remastered |
|---|---|
| Monolithic structure | Cleaner modular architecture |
| Beginner-level Pygame code | Refactored & maintainable codebase |
| Basic UI | Improved visual styling |
| Hard-to-read text | Better readability & typography |
| Overlapping sprite placement | Cleaner layout and positioning |
| Same gameplay | Preserved original mechanics |
- Think of any word in your mind.
- Enter the number of letters in that word.
- Anya will show a matrix of alphabets.
- For each letter in your word:
- Select the column number containing that letter.
- Anya will generate a new matrix.
- Repeat the process one more time.
- Watch Anya reveal the exact word you were thinking of 👀
If the result is incorrect, an incorrect column was likely selected at some point.
The game uses a simple but fun matrix trick to reconstruct your word.
A matrix containing the alphabet is shown.
For every letter in your secret word, only the column containing that letter is selected.
Example word:
FISHFrom the first matrix:
Selections:
- F → Column 6
- I → Column 3
- S → Column 1
- H → Column 2
Result:
[6, 3, 1, 2]The selected columns are transposed to create a new matrix.
You repeat the same process:
- F → Column 1
- I → Column 2
- S → Column 4
- H → Column 2
Result:
[1, 2, 4, 2]The selected columns are used row-by-row:
- Column 1 → Row 1
- Column 2 → Row 2
- Column 4 → Row 3
- Column 2 → Row 4
Result:
FISH✨ Mind reading achieved... LMAO
Clone the repository:
git clone https://github.com/R37r0-Gh057/AnyaPath-PygameMove into the project:
cd AnyaPath-PygameInstall dependencies:
pip install pygameRun the game:
python game.py- Python
- Pygame
AnyaPath-Pygame/
│── assets/
│ ├── sounds/
│ └── sprites/
│
│── game/
│ ├── animation.py
│ ├── audio.py
│ ├── game.py
│ ├── state.py
│ ├── ui.py
│ └── word_guesser.py
│
│── constants.py
│── game.py
│── requirements.txt
│── README.md- More sprite variations
- More Anya voice lines & reactions
- Additional UI polish
- Better support for very large words
Inspired by Anya Forger from Spy × Family.
Built with Python + Pygame.
Originally created in 2022, remastered years later for fun, learning, and nostalgia ✨


