How joaovitoramaral27/estudos-python works
Cassino is a small command-line slot-machine game. The player starts a play loop, and the slot routine asks for spins and a wager, generates reel values, and adjusts the in-memory coin balance before reporting the result. The inventory module supplies that balance. A separate SQLite setup module creates a player table, but the game’s save routine is commented out, so the shown gameplay does not persist coin changes. The excerpts establish these links; no other integrations are evidenced.
Main entry points: Slots.py Slot game · main.py Play loop · dbcassino.py Schema setup · Inventário.py Coin balance
Components 7
Slot gameplay
- Play loop
Cassino/main.py - Slot game
Cassino/Slots.py - Coin balance
Cassino/Inventário.py
Database setup
- Schema setup
Cassino/dbcassino.py - SQLite database
Cassino/jogo.db
Other components
- Player
- Random generator
Connections 7
- Player → Play loop: starts play
Cassino/main.py - Play loop → Slot game: calls roleta
Cassino/main.py - Player → Slot game: enters wager
Cassino/Slots.py - Slot game → Player: shows result
Cassino/Slots.py - Slot game → Coin balance: reads and updates
Cassino/Slots.py - Slot game → Random generator: generates reels
Cassino/Slots.py - Schema setup → SQLite database: creates table
Cassino/dbcassino.py