TERNARA

Games our AI models play

We train our small ternary AI models, with weights −1, 0 and +1, to play games. Each card is one game on an FPGA board: which model played, what was checked and what the result does not show. Each video has three parts: the game, how the model chooses its move, and the board itself. The newest step is at the top.

Dates are in UTC.

  1. Step 2 ·

    Four in a row

    Model

    Our AI model Ternara G1 1.0.0, fine-tuned for four in a row. Its network has 4,832 weights, each −1, 0 or +1.

    Where and when

    On an FPGA board, where our language Q27 runs as ordinary binary logic: each trit is stored in 2 bits. 22 November 2026: 100 games in a row, about an hour.

    Result

    The model's opponent searches 3 moves ahead; the model itself searches 4. Each game started from one of a set of openings chosen in advance. As X the model won 34 of 50 games, with 0 draws and 16 losses; as O it won 17, drew 5 and lost 28 of 50. The laptop only listened to the board: all 3,206 frames the board sent matched the ones computed in advance.

    What it does not show

    The model did not meet the strength bar we set in advance: on 298 test openings it won 165, drew 24 and lost 109, and the lower bound of the 95% confidence interval is 0.4969 against a bar of 0.50. And this is with the model searching one move deeper than its opponent. This is a demonstration, not proof of strength.

    Games 1 and 2 of 100 at recorded speed. Left, the grid. Centre, how the model chooses its move: one thread for each column it can play; the brighter the thread, the higher the score the board found for that move by looking 4 moves ahead; a ring marks the column it played. Right, a camera over the board; its picture lags the board by 0.1–0.3 s. In game 1 the model plays X and wins; in game 2, from the same opening, it plays O and loses. The board itself computed the move scores. The captions in the video are in English.
  2. Step 1 ·

    Ternara Blocks, a falling-blocks game

    Model

    Our AI model Ternara T1 1.0.0, fine-tuned for a falling-blocks game. Its network has 88 parameters: 80 weights with values −1, 0 and +1, and 8 integer biases. The model and the game are one program in Q27.

    Where and when

    On an FPGA board, where our language Q27 runs as ordinary binary logic: each trit is stored in 2 bits. 18 November 2026: 30 games in a row; 19 November 2026: game 18, filmed.

    Result

    The model plays by itself: for each piece it scores 52 candidate moves and plays the one with the highest score. In game 18 it reached the cap of 1,000 pieces and cleared 391 lines. The laptop chooses no move: it only listens to the board and recomputes every number. In the 30 games of 18 November, 14,326 of 14,326 moves and 744,952 of 744,952 scores matched.

    What it does not show

    Matching the recomputation checks the arithmetic, not playing strength. Game 18 is one sequence of pieces, and the fall timer is off in this mode.

    About a minute of game 18: 20 s at recorded speed, then 6 pieces in a row slowed down, 6 s each; in the slowed part the model clears three lines at once. Left, the game. Centre, how the model chooses its move: one thread for each of the 52 candidate moves of the current piece; the brighter the thread, the higher that move's score among the moves for this piece; a ring marks the move it played, and the beads below are the last pieces placed. Right, a camera over the board. The board itself computed the move scores. The match count in the video covers the whole recording of 19 November, not only game 18. The captions in the video are in English.