A comprehensive football tournament simulator written in pure C. Create your own 16-team tournament with group stages, knockout rounds, and a final match!
- 16-Team Tournament: Organize teams into 4 groups of 4 teams each
- Group Stage: Round-robin matches within each group
- Knockout Stage: Quarterfinals, semifinals, and final
- Interactive Interface: ASCII art and user-friendly menus
- Tie Resolution: Extra time and rematches for tied games
- Statistics Tracking: Goals scored, goals conceded, and victories
- Cross-Platform: Works on Linux, macOS, and Windows
- C Compiler (GCC, Clang, or MSVC)
- Terminal/Command Prompt
- Basic knowledge of football rules
# Clone the repository
git clone https://github.com/emal0n/bombpatch.git
cd bombpatch
# Build and run
make
make rungcc -Wall -Wextra -std=c99 -O2 -o bombpatch src/bombpatch.c
./bombpatchgcc -Wall -Wextra -std=c99 -O2 -o bombpatch.exe src/bombpatch.c
bombpatch.exemake debug
make run-debug- Start the Program: Run the executable and press 'F' to continue
- Enter Team Names: Input 16 team names when prompted
- Group Stage:
- Enter goals for each match in all 4 groups
- Handle ties with extra time if needed
- Knockout Stage:
- Quarterfinals (8 teams)
- Semifinals (4 teams)
- Final (2 teams)
- View Results: Check team statistics and tournament results
bombpatch/
├── src/
│ └── bombpatch.c # Main source code
├── docs/
│ ├── INSTALL.md # Installation guide
│ └── USAGE.md # Usage instructions
├── assets/
│ └── raw/
│ └── photo.png # Project logo
├── bombpatch # Compiled executable (Linux/macOS)
├── bombpatch.exe # Compiled executable (Windows)
├── bombpatch.dSYM/ # Debug symbols (macOS)
├── README.md # This file
├── LICENSE # MIT License
├── Makefile # Build configuration
└── .gitignore # Git ignore rules
The tournament follows standard football rules:
- 90-minute matches (simulated)
- Extra time for tied matches
- Rematches for tied group standings
- Goal difference and victories determine advancement
- Group Stage: 4 groups of 4 teams each
- Quarterfinals: Top 2 teams from each group (8 teams)
- Semifinals: 4 remaining teams
- Final: 2 finalists compete for the championship
- ASCII Art Interface: Beautiful terminal-based UI
- Interactive Menus: Easy navigation between options
- Statistics Display: Comprehensive team and match statistics
- Rules & Information: Built-in football rules and history
- Credits: Proper attribution for resources used
- Input validation for team names and scores
- Tie resolution mechanisms
- Clear error messages and prompts
- Graceful program termination
- New Match: Start a new tournament
- Rules: View football rules and regulations
- Font and Credits: View ASCII art credits and sources
- About Football: Learn about football history
- Exit: Close the program
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License - see the LICENSE file for details.
Edmundo Neto (emalon)
- GitHub: @emal0n
- ASCII Art: asciiart.eu
- Football Rules: rulesofsport.com
- Football History: britannica.com
If you encounter any issues or have questions, please open an issue on GitHub.
Made with ❤️ and pure C
