TTurnvector
Product

Product features · Turn legality

01

Add a legal-move check to a turn-based board game. Try an occupied square, a move by the wrong player and a move after the game has ended, preserving the board on every rejection.

01

Connection

Base URL, credentials and a reachable server.

02

Selection

A model available through the configured endpoint.

03

Capabilities

Context limits and tool support are determined by the model and server.

Turn legality

● ● ●Turnvector●
A concrete starting point · Turn legality ×
if (game.finished || player !== game.turn) return game;
if (!insideBoard(cell) || game.board[cell] !== null) return game;
return applyLegalMove(game, cell);
✳Add a legal-move check to a turn-based board game.
✓ ChangesReview before applying ↗
Illustrative workspace
AI coding workspace

Your next change starts here.

Get the Windows app ↗