A Python HTTP server game with 100 rounds, oracle, and move validation.
- 100 Rounds: Numbered 1 to 100
- Unique Codes: Each round has four unique code numbers (A, B, C, D) between 1-10000
- Oracle: Returns the four code numbers hidden among 10,000 random words
- Move Validation: Submit moves to advance through rounds
- Status Tracking: Check current round and win status
Returns text/plain with:
- First code number is XXX
- Second code number is XXX
- 10,000 random words
- Third code number is XXX
- Fourth code number is XXX
Submit a move with JSON body:
{"A": 1234, "B": 5678, "C": 9012, "D": 3456}Returns JSON response:
{"status": "correct", "message": "Round 1 completed! Moving to round 2"}Returns JSON with current game state:
{"round": 1, "won": false}python3 server.pyThe server will start on port 7978.
# Check status
curl http://localhost:7978/status
# Get oracle (first few lines)
curl http://localhost:7978/oracle | head -5
# Submit a move
curl -X POST -H "Content-Type: application/json" \
-d '{"A": 1234, "B": 5678, "C": 9012, "D": 3456}' \
http://localhost:7978/move# Run the test client (requires requests library)
python3 test_client.py- Each round has four unique code numbers (A, B, C, D)
- Use the oracle to find the code numbers hidden among random words
- Submit the correct four numbers to advance to the next round
- Complete all 100 rounds to win the game
- Codes are unique across all rounds and regenerated for each new game
- Python 3.6+
- No external dependencies (uses only built-in libraries)
- For test client:
requestslibrary (pip install requests)