How plenavi/pendu works
Pendu is a Java command-line hangman game. Players use the menu to read rules, prepare a two-player or player-versus-computer game, and start rounds; the game chooses or accepts a word, accepts letter guesses, and tracks points. The single sampled source file contains the menu and gameplay logic, so these responsibilities share its path. It also reads difficulty-specific word lists, with a fallback described in the source. The excerpts are partial, so the graph shows only the supported file-read relationships.
Main entry points: Main.java Menu and gameplay · facile.txt Easy words · moyen.txt Medium words · difficile.txt Hard words
Components 5
Game runtime
- Menu and gameplay
iut/but1/pendu/Main.java
Word lists
- Easy words
iut/but1/pendu/facile.txt - Medium words
iut/but1/pendu/moyen.txt - Hard words
iut/but1/pendu/difficile.txt
Other components
- Player
Connections 5
- Player → Menu and gameplay: chooses and guesses
iut/but1/pendu/Main.java - Menu and gameplay → Player: prompts and reports
iut/but1/pendu/Main.java - Menu and gameplay → Easy words: reads by difficulty
iut/but1/pendu/Main.java - Menu and gameplay → Medium words: reads by difficulty
iut/but1/pendu/Main.java - Menu and gameplay → Hard words: reads by difficulty
iut/but1/pendu/Main.java