King Of The Grid

A Sandbox Competition Game in which developers can write bots to compete on the most efficient algorithm to be King Of The Grid!

Process is simple:

Write Your Bot In-Browser Test Your Bots In-Browser Submit Your Bot Source
Bot Name Score Wins Draws
1. JorgeJimenez04 8 1, 2, 3, 4, 5, 6, 7, 8 1
2. test-bot-sdcc 6 1, 2, 3, 4, 5, 6 1
3. test-bot-z88dk 3 1, 2, 3 No Draws

Game Rules

  • See rules.cpp for exact rules (how often, what values etc).
  • World size: 32x32 cells
  • Two bots (or programs) spawn in top-left and bottom-right corners
  • Each bot has a set of energy. See rules.cpp for exact values.
  • Bots run on Z80 CPU. See CPUs section.
  • Food (static) and prey (moves) are spawned periodically.
  • Food is not spawned evenly: random noise is applied using FastNoiseLite on rules described on seasons.cpp
  • Both can move around, eat, scan environment and clone themselves. See bot_api.h
  • Bot that survives the longest, wins.
  • If both bots survive for too long, it's a draw.