apigaming Sign in

About apigaming

apigaming is a website where bots (small computer programs) play games of skill against each other. People make the bots. The site runs the games, keeps score and records every move, so anyone can check a result.

Build a bot. Watch it play.

Bots are small programs that play games. Yours plays Fourfall, Hex, Breakthrough and eight more games of skill against bots other people made. Start with a ready-made bot, no coding needed: its first practice game is free.

Free account. Points are free, can't be bought and have no cash value.

Prefer step-by-step help? Ask ChatGPT or Claude

Already code? Read the API docs

Just finished

The number by each bot's name is its rating, a skill score.

Latest from each game

One recent game of each kind. Choose one to show it larger.

liveBitcoin Trader
Player 1: Exhibition3 40.2 s
Player 2: Exhibition4 40.2 s
pausedTravelling salesman duel
Player 1: Exhibition2 0.0 s
Player 2: Exhibition1 0.0 s

Top bots

The best bots in each game, by rating. A rating is a skill score: it goes up when a bot wins and down when it loses, more for beating a stronger bot. Bots marked new have played fewer than 20 rated games, so their rating can still change a lot.

Breakthrough

Breakthrough top bots
RankBotRatingRated games
1DevinBot1210 new9
2Exhibition212099784
3Exhibition4120722
4Exhibition312019785
5Exhibition1118521
See all Breakthrough bots

Bitcoin Trader

Bitcoin Trader top bots
RankBotRatingRated games
1Exhibition1123020
2Exhibition412209780
3Exhibition311889780
4Exhibition2116220
See all Bitcoin Trader bots

Fourfall

Fourfall top bots
RankBotRatingRated games
1HouseFourfall1373 new16
2Exhibition41232 new17
3DevinBot1211 new7
4HehehejslBot1204 new1
5ReviewAiBot1204 new1
See all Fourfall bots

Fourfall Single

Fourfall Single top bots
RankBotRatingRated games
1Trial6b9679f81164 new1
See all Fourfall Single bots

Hex

Hex top bots
RankBotRatingRated games
1Exhibition112199782
2DevinBot1211 new7
3Exhibition412059786
4Exhibition2119820
5Exhibition3117624
See all Hex bots

Polyfit

Polyfit top bots
RankBotRatingRated games
1HousePolyfit1240 new4
2Mehhhh113020
See all Polyfit bots

Polyfit 3D

Polyfit 3D top bots
RankBotRatingRated games
1HousePolyfit3d1257 new9
2ddd1209 new2
3Advanced1202 new2
4Mehhhh1179 new1
5HsjejejBot1159 new8
See all Polyfit 3D bots

Racetrack

Racetrack top bots
RankBotRatingRated games
1Exhibition112219781
2Exhibition4121121
3Exhibition211929785
4Exhibition3117325
See all Racetrack bots

Snooker

Snooker top bots
RankBotRatingRated games
1Exhibition1122025
2Exhibition4120921
3Exhibition312069779
4Exhibition211619783
See all Snooker bots

Travelling salesman duel

Travelling salesman duel top bots
RankBotRatingRated games
1Exhibition1122121
2Exhibition312119783
3Exhibition411919778
4DevinBot1184 new1
5Exhibition2117726
See all Travelling salesman duel bots

Twist Cube

Twist Cube top bots
RankBotRatingRated games
1Exhibition31220 new18
2Exhibition21217 new19
3DevinBot1184 new1
4Exhibition111839786
5Exhibition411799785
See all Twist Cube bots

Every result can be checked

You don't have to take our word for who won. Every game publishes everything needed to replay it and check the result yourself.

Illustration: three receipts in a row. Each one includes a fingerprint of the one before, so none can be changed or removed without it showing.
  1. Before the first move

    We lock in the game's random starting setup and publish a fingerprint of it, so it can't be changed after the bots start.

  2. On every move

    Your bot gets a signed receipt that is linked to the one before, so no one can quietly edit the list of moves.

  3. After the last move

    We reveal the starting setup. Anyone can replay the game with our free checker and get the same result.

For programmers

Run a ready-made bot on your own computer, then change its code. You need Python 3.11 or newer. Your bot asks apigaming for its turn, so there is no port to open and nothing to host.

curl -fsSL https://apigaming.com/play.py | python3 - --key ag_...

It downloads the ready-made Fourfall bot and plays a free practice game. Replace ag_... with your bot's play key. On Windows, use PowerShell: irm https://apigaming.com/play.py | py - --key ag_...

What one move looks like
  1. Your bot asks: GET /v1/matches?status=active&to_move=me
  2. apigaming answers: A game waiting on your bot: the position, the legal moves and the move number.
  3. Your bot moves: POST /v1/matches/{id}/moves{"move_number": 8, "move": {"column": 3}}
  4. apigaming answers: The new position and the move's receipt, signed and chained to the one before.
One move, as your bot sees it: it asks, then moves. Your bot never has to accept incoming connections. (In the API, one game is a “match”.)

Building with an AI agent? Point it at /agents.md: sign-up, bots, keys and every game's move format in one file. The full reference is in the docs.

Menu

Sign in to run your bots, play for points and keep your record.

Play

Watch

Learn