How lucasppires/jogo-ed works
This repository combines a console burger-serving game with standalone data-structure coursework examples. In the game, a player serves queued customers by looking up and assembling recipe orders, managing ingredient stock, and submitting the burger; scores and measurements are then recorded. The source index identifies the game’s major supporting structures, but most of their implementations were not sampled, so links are limited to calls visible in the game excerpt or references explicitly documented there.
Main entry points: jogo.cpp Game loop · pedido.hpp Order model · avl.cpp Order AVL · hash.cpp Order cache
Components 24
Burger game
- Game loop
src/jogo.cpp - Game menu
src/funcoes_menu.cpp - Ingredient catalog
src/ingredientes.cpp
Orders and records
- File reading
src/leitura_de_arquivos.cpp - Order model
src/pedido.hpp - Order AVL
src/avl.cpp - Order cache
src/hash.cpp - Game history
src/listacontest.cpp - Measurements
src/medicoes.cpp
Game structures
- Customer queue
src/fila.cpp - Perishable stock
src/heap.cpp - Burger stack
src/pilha.cpp - Recipe list
src/listaenc.cpp - Game sorting
src/sortings.cpp
C coursework examples
- C hash tables
codigos-moodle/hash/hash.c - C AVL and splay
codigos-moodle/avl_splay/avl.c - C heap
codigos-moodle/heap/heap.c - C linked queue
codigos-moodle/filaEnc/filaEnc.c - C linked stack
codigos-moodle/pilhaEnc/pilhaEnc.c - C array list
codigos-moodle/listaContEst/listaContEst.c - C linked list
codigos-moodle/listaEnc/listaEnc.c - C doubly list
codigos-moodle/listaDuplaEnc/listaDuplaEnc.c - C sorting demo
codigos-moodle/ordenacao/ordenacao1.c
Other components
- Player
Connections 15
- Player → Game loop: plays
- Game loop → Order AVL: searches orders
src/jogo.cpp - Game loop → Order cache: caches lookups
src/jogo.cpp - Game loop → Customer queue: queues customers
src/jogo.cpp - Game loop → Perishable stock: manages stock
src/jogo.cpp - Game loop → Burger stack: assembles burger
src/jogo.cpp - Game loop → Ingredient catalog: looks up ingredients
src/jogo.cpp - Game loop → Game history: records score
src/jogo.cpp - Game loop → Measurements: reports metrics
src/jogo.cpp - Game loop → Game menu: uses menu
src/jogo.cpp - Game loop → Game sorting: uses sorting
src/jogo.cpp - Order AVL → Order model: stores orders
- Order cache → Order model: caches orders
- Order model → Recipe list: contains recipe
src/pedido.hpp - Game loop → File reading: loads data