Skip to content

R37r0-Gh057/AnyaPath-Pygame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AnyaPath Logo

✨ AnyaPath Remastered ✨

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.


🎮 Gameplay Preview


📖 About

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 vs Remastered

Original (2022) Remastered

✨ What's Improved?

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

🕹️ How To Play

  1. Think of any word in your mind.
  2. Enter the number of letters in that word.
  3. Anya will show a matrix of alphabets.
  4. For each letter in your word:
    • Select the column number containing that letter.
  5. Anya will generate a new matrix.
  6. Repeat the process one more time.
  7. Watch Anya reveal the exact word you were thinking of 👀

If the result is incorrect, an incorrect column was likely selected at some point.


🧠 How The Magic Matrix Works

The game uses a simple but fun matrix trick to reconstruct your word.

Step 1 — Initial Matrix

A matrix containing the alphabet is shown.

For every letter in your secret word, only the column containing that letter is selected.

Example word:

FISH

From the first matrix:

Selections:

  • F → Column 6
  • I → Column 3
  • S → Column 1
  • H → Column 2

Result:

[6, 3, 1, 2]

Step 2 — Matrix Transposition

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]

Step 3 — Word Reconstruction

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


🚀 Installation

Option 1 — Run From Source

Clone the repository:

git clone https://github.com/R37r0-Gh057/AnyaPath-Pygame

Move into the project:

cd AnyaPath-Pygame

Install dependencies:

pip install pygame

Run the game:

python game.py

🛠️ Tech Stack

  • Python
  • Pygame

📁 Project Structure

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

🎯 Future Improvements

  • More sprite variations
  • More Anya voice lines & reactions
  • Additional UI polish
  • Better support for very large words

❤️ Credits

Inspired by Anya Forger from Spy × Family.

Built with Python + Pygame.

Originally created in 2022, remastered years later for fun, learning, and nostalgia ✨

About

Anya Forger from "Spy x Family" can read your mind!

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages