How ilya0107/student-simulator works
student-simulator is a Windows console game: the player selects a character and starting bonus, then makes choices across ten days while managing health, knowledge, and money. Daily costs and probabilistic dreams modify those resources; the game can end early on resource failure or proceed to an exam with grade, bribery, and special-ending branches. The sampled source shows the game loop, player rules, content tables, and console-color wrapper. Other documented ending variants are represented by the exam subsystem; their exact wiring is not expanded beyond the inspected code.
Main entry points: main.cpp Game loop · player.cpp Player · color.cpp Console colors · text_data.cpp Ending text
Components 10
Daily gameplay
- Game loop
src/main.cpp - Daily choices
src/text_data.cpp - Dream content
src/text_data.cpp
Game rules
- Player
src/player.cpp - Exam outcomes
src/player.cpp - Ending text
src/text_data.cpp - Player definitions
src/player.h
Console presentation
- Console colors
src/color.cpp
Other components
- Player
- Windows console
Connections 12
- Player → Game loop: chooses and enters
- Game loop → Daily choices: reads day data
- Game loop → Player: applies effects
- Game loop → Player: checks early end
- Game loop → Dream content: reads dream data
- Game loop → Player: applies dream effect
- Game loop → Exam outcomes: calls after ten days
- Exam outcomes → Ending text: reads ending text
- Player → Ending text: reads failure text
- Game loop → Console colors: sets display color
- Player → Console colors: sets display color
- Console colors → Windows console: sets console attributes