This month we have a brand new game session: Code & Conquer
This is a bring your laptop session – please have your code editor of choice, and
The game starts with a square grid. The winning team is the team who, by the end of the game,
has captured the most squares. Once you own a square, you must protect it from other teams
attempting to steal it.
Using the default game client (a simple Node app), you send commands to the game server in real time to
play your particular strategy. You can send attack, defend and query commands.
attack: takes 1 health point off the specified cell. If you cause the cell's health to drop
to 0, you become the new owner and the cell's health is set to 120.
defend: adds 1 health point to the specified cell. A cell's health is capped at 120.
You can defend any cell on the grid, including cells you don't own.
query: retrieves the current state of the grid. Each cell has a state which shows:
- The cell owner
- The cell health
- The cell bonus – some cells count for double or triple
- Who has attacked and defended the cell since it was last owned
All cells are initially owned by the game, with a health of 60. You start with 30 requests,
which are replenished every 1 minute. attack and defend commands use 1 of your
30 requests, but query commands are free.
You'll be supplied with a default game client, allowing you to play the game at human-scale
immediately. However, with 30 requests per minute, unless you're working efficiently at one
command every 2 seconds, you're going to need to reprogram the client to play better :)