How byfranca/desafios_java works
This repository is a small collection of independent Java programs: a theatre seat reservation and sales application, a Swing tic-tac-toe game, and five console exercises. In the theatre workflow, the user enters a ticket price, selects an action, clicks seats, and can view seat counts and financial totals. Tic-tac-toe lets players choose who starts, make moves, see wins or draws and scores, and restart. The sampled code places most behaviour directly in each Swing screen; the README documents theatre capabilities. Arrows reflect shown calls or documented interactions, not separate unseen layers.
Main entry points: TelaTeatro.java Theatre screen · TelaJogoDaVelha.java Game screen · teatro_swing/Main.java Theatre launcher · jogo_da_velha_swing/Main.java Game launcher
Components 12
Theatre reservations
- Theatre launcher
src/teatro_swing/Main.java - Theatre screen
src/teatro_swing/TelaTeatro.java - Seat grid and state
src/teatro_swing/TelaTeatro.java - Seat actions
src/teatro_swing/TelaTeatro.java - Ticket pricing
src/teatro_swing/TelaTeatro.java - Financial report
src/teatro_swing/TelaTeatro.java
Tic-tac-toe
- Game launcher
src/jogo_da_velha_swing/Main.java - Game screen
src/jogo_da_velha_swing/TelaJogoDaVelha.java - Move and win logic
src/jogo_da_velha_swing/TelaJogoDaVelha.java - Score and restart
src/jogo_da_velha_swing/TelaJogoDaVelha.java
Console exercises
- Console exercises
src/exercicios_simples
Other components
- User
Connections 17
- User → Theatre launcher: starts
- Theatre launcher → Theatre screen: creates
src/teatro_swing/Main.java - User → Theatre screen: uses
README.md - Theatre screen → Ticket pricing: requests price
src/teatro_swing/TelaTeatro.java - Theatre screen → Seat grid and state: displays seats
src/teatro_swing/TelaTeatro.java - User → Seat actions: selects action
README.md - User → Seat grid and state: chooses seats
README.md - Seat actions → Seat grid and state: updates state
README.md - Theatre screen → Financial report: shows report
src/teatro_swing/TelaTeatro.java - User → Financial report: requests report
README.md - User → Game launcher: starts
- Game launcher → Game screen: creates
src/jogo_da_velha_swing/Main.java - User → Game screen: plays
- Game screen → Move and win logic: handles moves
src/jogo_da_velha_swing/TelaJogoDaVelha.java - Move and win logic → Score and restart: updates score
src/jogo_da_velha_swing/TelaJogoDaVelha.java - User → Score and restart: restarts game
src/jogo_da_velha_swing/TelaJogoDaVelha.java - User → Console exercises: runs