Tetgame mark
Tetgame deep-code room

The Diamond Mine

Inspect Tetgame Rabbot behavior files and prepare the future safe editor for strategy tuning.

Welcome guest — sign in through the Trigame front door when you are ready.
Log in via Trigame

Diamond Mine

The Tetgame answer to the Gold Room.

Read-only starter

The Diamond Mine is intended to expose the deeper machinery of Tetgame Rabbots: behavior files, scoring nudges, strategy filters, voice loaders, backups, and eventually safe editing tools.

Current pass: this page only lists and displays local Tetgame JS/JSON files from js/rabbots, js/personalities, and js/voices. It does not save changes yet.

Behavior / voice file viewer

js/personalities/aquila_talon.js

/*
 * Tetgame Rabbot: Aquila Talon
 *
 * Personality v3: Aquila's choice brain lives here. Her voice lines
 * live separately in js/voices/aquila_talon.json and are registered by
 * js/voices/aquila_talon.js. Tetgame supplies the legal move lists in
 * ctx.tokenMoves and ctx.tetMoves, and this file simply chooses among them.
 * No DOM, Babylon, or save/load dependencies.
 */
(function(global){
  'use strict';

  const registry = global.TetgameRabbotBrains = global.TetgameRabbotBrains || {};

  registry.aquila_talon = {
    key:'aquila_talon',
    id:'aquila_talon',
    name:'Aquila Talon',
    gender:'female',
    level:1,
    style:'patient tactical challenger',
    temperament:'sky commander',

    chooseMove(ctx){
      if (!ctx || ctx.matchEnded || ctx.tournamentEnded) return null;
      if (ctx.tetCount <= 0) return {type:'start_tet', score:1000, reason:'claim the first high perch'};

      const bestToken = ctx.tokenMoves[0] || null;
      const bestTet = ctx.tetMoves[0] || null;

      // Aquila is meant to be fair but not limp: if she can immediately
      // connect or capture with a token, she usually takes the tactical point.
      if (bestToken && bestToken.score >= 8) return bestToken;

      // Early in the game, she expands the board from above instead of just
      // dropping the first available token.
      const openingTetLimit = Math.max(2, Math.min(4, ctx.activeCount + 1));
      if (!ctx.boardLocked && bestTet && ctx.turnActionCount === 0 && ctx.tetCount < openingTetLimit) {
        return bestTet;
      }

      // The second action of a turn is usually a good time to mark territory.
      if (bestToken && (ctx.turnActionCount > 0 || !bestTet || bestToken.score >= bestTet.score - 0.5)) {
        return bestToken;
      }

      if (!ctx.boardLocked && bestTet) return bestTet;
      if (bestToken) return bestToken;
      return {type:'pass', score:-1, reason:'no legal action found'};
    }
  };
})(window);

Future safe editor shape

Borrowing the Gold Room idea without mixing Trigame and Tetgame logic.

Read original

Keep an original snapshot before the first edit.

Edit safe sections

Expose selected behavior sections without letting the page damage wrapper code.

Test in Tetgame

Save, then jump back to the Blue Room or board to test the Rabbot live.