Replace the direction-snapping approach (which broke N>6 and N=5) with: 1. Place N corners as a true regular N-gon in Cartesian space (radius = sideLength), then snap each to the nearest hex via cube-coordinate rounding (CartToHex / CubeRound). 2. Draw each edge with cube-space lerp (HexLine): interpolate in cube coords and round at each step, producing the canonical hex-lattice line between any two tiles regardless of direction. 3. Flood-fill from (0,0) with the edge tiles as walls. 4. Mark absent all in-bounds tiles outside the filled region. This correctly handles all N in [3,10] without direction quantisation or bridging hacks. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
SOR
Resources
In addition to this gitea repository, the application's servers and webclient are deployed using containers using ArgoCD.
Installation Instructions
Visual Studio Code
Download any version of Visual Studio Code, from here:
Godot Version 4.5.x
Download a version of Godot 4.5.x, preferrably Godot 4.5.2-stable, from here:
The Godot executable doesn't require an installation. Just unzip the godot folder and run the 'Godot_v4.5.2-stable_win64' executable.
Clone Instructions
Only HTTPS clone to VSCode is supported at the moment.
- SSH Clone doesn't work since the repository root doesn't have a .git folder.
On the "Code" page for SOR, click the "Code" button and then click "Open with VS Code".
- Your browser may ask if you want to launch VS Code. Do so.
- VS Code will utilize your browser to authenticate. Do so.
The Client
The Client is a GUI created in Godot.
Modifying the Client in Godot
Once you've cloned the repository, Open Godot.
Then, select "Import".
Open the project.godot file in the Client/origin-client/ folder.
Building the Web Client
When you update the 'main' branch of the SOR Repository, a gitea action will automatically start, building the Godot Web Client.
Deploying the Web Client
After the Web Client is built, you need to restart (not sync) the Deployment object of the sor-webclient application in ArgoCD.
