RobyGraph—The Game
Welcome to RobyGraph, the ultimate strategy challenge in a cosmic, cozy, connected world! Program a clever AI agent to pilot your friendly robot through a network of sparkling planets and rainbow paths. Outmaneuver your opponent and claim the top rank in this gentle, non-violent contest of wits.

Introduction
RobyGraph transports you to the RobyGraph Nebula—a vibrant, peaceful corner of the cosmos, where everything is connected. Here, two friendly teams of robots vie to color the most Sparkle Gems and control the key homes (nodes) in a starry network of planets, moons, and rainbow roads.
Your …
RobyGraph—The Game
Welcome to RobyGraph, the ultimate strategy challenge in a cosmic, cozy, connected world! Program a clever AI agent to pilot your friendly robot through a network of sparkling planets and rainbow paths. Outmaneuver your opponent and claim the top rank in this gentle, non-violent contest of wits.

Introduction
RobyGraph transports you to the RobyGraph Nebula—a vibrant, peaceful corner of the cosmos, where everything is connected. Here, two friendly teams of robots vie to color the most Sparkle Gems and control the key homes (nodes) in a starry network of planets, moons, and rainbow roads.
Your challenge: write the AI agent that controls your robot companion. Send your bot along the paths to claim and decorate planets, collect Sparkle Gems, and secure checkpoints for your team—all while outsmarting the competition.
Designed as a "Gentle Strategy" game, RobyGraph celebrates non-violent, resourceful play. Claim the stars, decorate cozy planets, and enjoy a universe where rivalry means cleverness, not combat.
- Curious how this cosmic world was built? Read our Behind the Scenes blog post.*
Meet your bot!
The RobyGraph Agent—a half-robot, half-elf friend wielding a paint-spray bottle—tags planets in your colors for your team.
Once your agent is ready, you can submit it to join the competition—check out the Highscores section at the bottom to see how you rank against others!

**Ready to code your way to gentle, stellar victory? **
How to play
RobyGraph is a strategic race through the cosmos. You program an AI agent to control a robot agent. Your goal is to capture Checkpoints (clusters of planets) to outscore your opponent.
The game is played in the browser-based yFiles Playground, where your code determines every move.

Game rules
⏱ Turn order
The game is turn-based. Each round, your agent returns exactly one action. Both players’ actions are executed simultaneously, followed by an automatic "World Update" where paint spreads.
🚩 Checkpoints (the goal)
Planets are grouped into constellations called checkpoints, marked by a little flag icon. You only earn points by owning every single planet in that cluster.
🏆 Winning
The first player to control more than 50% of the checkpoints wins instantly. Otherwise, the player with the most checkpoints after the final round wins. Tiebreaker: Total power of all owned nodes.
Strategy
From nodes to checkpoints
Capturing a checkpoint is a two-step process. You cannot claim a flag directly; you must work from the ground up:
Step 1
Visit individual nodes (planets) and use the Spray action until they turn into your team’s color.
Step 2
Once every single node within a constellation belongs to you, the checkpoint is secured, and your score increases.
Pro Tip: Don’t leave a cluster half-finished! An opponent can flip a single node back, preventing you from scoring the entire checkpoint.
Node mechanics
Level vs. capacity
Every planet (node) has two values that define its state:
Paint capacity (visual size)
Think of this as the planet’s max health. A larger node needs more paint to be captured, but it is also more resistant to enemy influence.
Paint level (current fill)
This is the amount of paint currently on the node. To capture a planet, you must fill its level until it reaches its capacity.
Power (stars ★)
Stars indicate how much paint a node generates per round. Owned nodes automatically refill themselves and spread your color to neighbors.

The 3 actions
What your code can do
In every turn, your agent must choose one of these actions:
1. Move
Navigate to an adjacent node. Tip: Use yFiles algorithms to calculate the shortest path to high-value targets.
2. Spray
Use paint from your tank to color the node you are currently on.
3. Refill
Crucial: Your robot has a limited paint supply. Stand on a node you already own and use the Refill action to siphon paint back into your tank.
Master the nebula
Implement clever graph algorithms in your agent to maximize your team’s influence. Reach checkpoints faster, manage your paint tank, and outsmart your rival’s logic.
Want to see it in action? Try the simple included agents, build your own, and race for the stars!
New to the nebula? You can also play manually to learn the ropes before coding your champion!
typescript
const myAgent: Agent =
async (game: GameState, robot: RobotState): Promise<Action> => {
// 1. Check current planet state
const node = game.getNodeState(robot.currentPosition)
if (node.owner !== robot) {
return { type: 'spray' }
}
// 2. Move to the next connected planet
const neighbors = game.graph.neighbors(robot.currentPosition)
return { type: 'move', destination: neighbors.at(0)! }
}
Highscores
| Rank | AI agent | Wins | Gist link |
|---|---|---|---|
| 1 | Claude | 720 | - |
| 2 | Junie | 702 | - |
| 3 | MediumAgent | 660 | - |
| 4 | Gemini | 534 | - |
| 5 | WeakAgent | 200 | - |
Submit your agent
For the highscores, the agents compete against each other multiple times on each map and all won levels are counted.
Want to see your agent climb the highscore? Then submit your agent and we will let it join the competition:
-
In the yFiles Playground, click on the ‘Share’ button on the left and choose ‘Share as Gist’.
-
Log into your GitHub account and copy the Gist link.
-
Write an email to submission@robygraph.ai that includes:
-
The Gist link.
-
The name of the AI agent to be used in the highscore.
-
Note: Please explicitly mention in your email that you want your Gist link to be shared on the public highscore list. You can simply write: ‘I agree to my Gist link being shared on the highscore list’.
If you no longer want your agent to appear in the highscore list, you can send an email at any time to submission@robygraph.ai.
For details on how we handle your data, please see our privacy policy.
About yFiles: The graph visualization SDK

yFiles is your go-to SDK for crafting advanced graph visualizations, whether you’re working with Web, Java, or .NET technologies. Its unmatched flexibility and scalability enable you to convert complex data into clear, actionable visuals, fitting for both enterprise and startup needs.
With yFiles, you’re equipped for the future—supporting any data source while maintaining strong data security. Getting started is seamless, thanks to over 300 source-code demos, thorough documentation, and direct access to core developer support. These resources are available even during your free trial.
Backed by 25 years of graph drawing expertise, yFiles is trusted by top companies worldwide for their most critical visualization tasks.