aviator-2/
├── bin/ # Compiled executables
├── server.c # Server implementation (452 lines)
├── client.c # Client implementation (277 lines)
├── common.h # Shared definitions (34 lines)
├── test.py # Comprehensive test suite (654 lines)
├── debug_helper.py # Quick debugging utilities (180 lines)
├── Makefile # Build configuration (35 lines)
└── README.md # Enhanced documentation (275 lines)
The project includes a comprehensive test suite with advanced debugging capabilities:
make test # Run all automated tests
python3 test.py --auto # Direct commandmake test-stress # Run stress/load tests
python3 test.py --stressmake test-manual # Show manual testing guide
python3 test.py --manualmake test-all # Run everything
python3 test.py --allAdd --debug flag to any test for verbose output:
python3 test.py --auto --debug # Detailed message tracing
python3 test.py --stress --debug # Stress test debugging# Test connection to server
python3 debug_helper.py connection 8080
# Verify struct compatibility
python3 debug_helper.py struct
# Monitor server logs
python3 debug_helper.py server 51511 15
# Run single client scenario
python3 debug_helper.py scenario 51511- Start server:
./bin/server v4 8080 - Connect clients:
./bin/client 127.0.0.1 8080 -nick Player1 - Test scenarios: betting, cash-out, and explosion
- 🔍 Message Tracing: See all client-server communications
- 📊 Connection Monitoring: Track client connections and disconnections
- 🎯 Protocol Validation: Verify message structure and size
- 📈 Game Flow Analysis: Monitor betting, multipliers, and explosions
- ⚡ Real-time Logs: Live server event logging