The Gridlock Arena of Mythos - C# Solution
This folder contains the preserved C# reference implementation for the Gridlock Arena of Mythos.
Files
The-Gridlock-Arena-of-Mythos.cs- Main battle simulationGridlockArenaTests.cs- Deterministic runner for documented scenarios and edge casesProgram.cs- Console entry point
Run
dotnet build
dotnet run -- mythos
dotnet run -- mythos-test
Expected documented result
- Dragon: 12 points
- Wizard: 0 points and survives
- Other creatures: 0 points
Test scope
The runner exercises:
- position and movement calculations;
- documented battle simulations;
- boundary and tie scenarios.
It is a lightweight educational runner, not a replacement for a dedicated unit-test framework or coverage collector. No coverage percentage is claimed.
Architecture
Positionrecord - Immutable position with movement calculationsCreatureclass - Arena combatant dataDirectionenum - Type-safe movement directionsBattleSimulatorclass - Simulation engineMythosclass - Console coordination