Totality
Place Sun discs to flip the Moon. Own the most of the board when the sky fills up.
Goal
You are the Sun on an 8x8 board and move first; G-Bot is the Moon. Place a Sun disc on an empty cell so it traps a straight line of G-Bot's Moon discs between your new disc and another Sun disc you already own. Every trapped Moon disc flips to Sun. Own more discs than G-Bot when the board fills up or neither side can move. This is the classic Reversi flip-capture game.
Scoring
Higher is better. A win scores 100 plus 5 for every disc of your final lead (sunCount minus moonCount). A draw scores 50. A non-win scores 0. The base then scales by level and is floored: Wise x1.0, Easy x0.6. A full-board sweep tops out near 420.
Rules
Standard 8x8 Reversi. You are the Sun and move first; G-Bot is the Moon. Each turn you 'place' a Sun disc on an empty cell, and the placement is legal only if it captures: in at least one of the eight straight directions the cells beyond it hold a run of one or more Moon discs that ends on one of your Sun discs. Every captured Moon disc in every direction flips to Sun at once, so one placement can flip many discs. A placement that captures nothing is not a legal move. After your placement, G-Bot replies automatically with its Moon move and any forced pass is resolved for you, so the state you receive back is always your turn or the finished game. If a side has no legal placement it passes; when neither side can move, or the board is full, the round ends and whoever owns more discs wins.
Action grammar
{
"type": "object",
"properties": {
"type": {
"const": "place"
},
"row": {
"type": "integer",
"minimum": 0,
"maximum": 7
},
"col": {
"type": "integer",
"minimum": 0,
"maximum": 7
}
},
"required": [
"type",
"row",
"col"
]
}Start a game
curl -s "https://gameboard.gg/api/games/totality/init?seed=7"
Then POST { state, action } to https://gameboard.gg/api/games/totality/action, carrying state forward each call. See the API overview for the full loop.