How jhanavi128/caso_bote works
Caso_Bote is a small interactive Java console game about ferrying the wolf, Little Red Riding Hood, and grapes across a river. The player selects a passenger (or an empty crossing); the game checks that the passenger is beside the boat, moves the boat and passenger, then checks for a loss or win. The game controller owns these rules and coordinates the state objects. Source excerpts show the entry point and runtime calls; the README provides no further capability details.
Main entry points: AppJuegoCaperucita.java Game controller · Caperucita.java Red state · App.java Java entry point · Lobo.java Wolf state
Components 9
Application entry
- Java entry point
Caso_Bote/src/App.java
Game control
- Game controller
Caso_Bote/src/pkJuego/AppJuegoCaperucita.java
Game state and actions
- Boat
Caso_Bote/src/pkJuego/Bote.java - Crossing announcer
Caso_Bote/src/pkJuego/Observador.java - Wolf state
Caso_Bote/src/pkJuego/Lobo.java - Red state
Caso_Bote/src/pkJuego/Caperucita.java - Grapes state
Caso_Bote/src/pkJuego/Uva.java
Other components
- Player
- Console
Connections 13
- Player → Java entry point: starts game
Caso_Bote/src/App.java - Java entry point → Game controller: starts play
Caso_Bote/src/App.java - Player → Console: selects moves
- Game controller → Console: reads and prints
Caso_Bote/src/pkJuego/AppJuegoCaperucita.java - Game controller → Boat: checks and moves
Caso_Bote/src/pkJuego/AppJuegoCaperucita.java - Game controller → Crossing announcer: announces crossing
Caso_Bote/src/pkJuego/AppJuegoCaperucita.java - Game controller → Wolf state: reads and updates
Caso_Bote/src/pkJuego/AppJuegoCaperucita.java - Game controller → Red state: reads and updates
Caso_Bote/src/pkJuego/AppJuegoCaperucita.java - Game controller → Grapes state: reads and updates
Caso_Bote/src/pkJuego/AppJuegoCaperucita.java - Game controller → Wolf state: invokes eating
Caso_Bote/src/pkJuego/AppJuegoCaperucita.java - Game controller → Red state: invokes eaten action
Caso_Bote/src/pkJuego/AppJuegoCaperucita.java - Game controller → Grapes state: invokes eaten action
Caso_Bote/src/pkJuego/AppJuegoCaperucita.java - Game controller → Red state: invokes eating
Caso_Bote/src/pkJuego/AppJuegoCaperucita.java