How cassio7/trannoi works
Project type and purpose
• From the README and file tree, this is a small, procedural C “game engine” for an Among-Us-style text game. It consists of:
• a main driver (main.c)
• a reusable game library (gamelib.c/.h)
• a requirements/spec PDF (Testo del progetto.pdf)
• It is neither a web app nor microservices – it’s a single‐process, console‐based game implemented in C using procedural modules.
File structure
• Top level:
• gamelib.h / gamelib.c: core game logic and state management
• main.c: entry point, I/O loop, orchestrates calls into gamelib
• README.md / Testo del progetto.pdf: documentation/spec
• .gitignore
Key insights from the README
• The library implements:
• Player roles (impostors, astronauts)
• Room graph (normal rooms, botola rooms, quest rooms)
• Actions: move, use_botola, sabotaggio, chiamata_emergenza
• Two minigames (quest_semplice, quest_complicata)
• Victory conditions and probability rules are defined in the library.