Back to the cards

Order N Chaos

Game: 1v1 tactics, playable here

My part
Tech lead, networking
Team
9 people
When
Sep 2025 to Apr 2026
Runs on
GGEngine
Made with
GGEngine, C++20, Lua, Steamworks, Godot port

This is a Godot port of the original game, so that it can run in a browser. You can play against the AI on three difficulty levels or against another player online, and nothing is downloaded until you press play.

How the game works

Order N Chaos is a 1v1 tactics game. Each player has three champions on their own 6x4 board, with one player as Order and the other as Chaos.

Both players plan their turn at the same time, and neither can see the other’s plan. You get 90 seconds and 6 action points to move your champions and queue abilities onto the enemy’s board, and nothing happens until both players have locked in. The whole turn then resolves in a fixed order.

Positioning matters as well, since abilities depend on whether a champion is standing on a red or a blue tile, and tiles break after taking enough hits. The first side to bring the other’s shared health to 0 wins.

My role

I was the tech lead of our team of nine, and I wrote the networking. That covers getting both players’ plans to the server, having the server resolve the turn, and sending the result back to both clients to play out.

The game is built on GGEngine, the engine our team wrote from scratch, and I’ve written a post-mortem on it that goes through how the networking was built and what I got wrong.

About the version on this page

The original game runs on our own engine and is wired over Steam for multiplayer, which can’t run in a browser. The version here is a port to Godot, and it has three modes:

  • Singleplayer, which is new. You play against an AI that uses minimax with alpha-beta pruning, with three levels of difficulty. Since both sides plan at the same time, the AI scores each of its candidate plans against the opponent’s best replies, and it never sees the plan you are making.
  • Pass and play, which is the original’s local mode.
  • Online, which is peer to peer like the original’s Steam wiring. One player hosts and runs the game in-process next to their own client, and the other player connects to them through a thin relay server that I wrote in Go. The relay takes the place of Steam, so it only handles lobbies and forwards messages over WebSocket, and it knows nothing about the game’s rules.

Since the host’s machine would otherwise see the other player’s plan before the turn resolves, both players first send a hash of their plan and only reveal the plan once they hold the other side’s hash.

The first online playtest ended when one player’s connection stopped answering in the middle of a match. So now the relay keeps a dropped player’s seat for 60 seconds while their game reconnects, and the messages that were in flight are sent again, so the match carries on from where it was.

The port has also grown past the original. Each side now has an Ultimate that charges up over a match, the knights Tirion and Vizom were reworked around it, the game can be played with a controller, and its text is translated into 17 other languages.

The port keeps the original’s grid, which is skewed to fake a 3D perspective, and it uses the same rules core for local play, the host and the AI.

The trailer, recorded from the Godot port.

Order N Chaos was made at DigiPen Institute of Technology Singapore by Team GGPals. © 2026 DigiPen Institute of Technology. Music: Sim Wei Jun.