Logo and icon for Tic Tac Toe, a ChatGPT plugin with description: Playing a game of Tic Tac Toe with varying board sizes. You can submit your move and get the AI's response move.. Find out more on Plugin Surf, the best plugin database.

Tic Tac Toe

Playing a game of Tic Tac Toe with varying board sizes. You can submit your move and get the AI's response move.

This plugin brings the classic Tic Tac Toe game to your chat! Available boards come in various sizes, ranging from 3x3 to 6x6. As you submit your moves, you will receive AI's responses back in no time. And the best part? You can start playing by making the first move, or let the AI do it. The board displays 'X' and 'O' moves in numbers '1' and '2' respectively, and the API response includes a visual representation of the board. Get ready to test your Tic Tac Toe skills and have some fun!

Learn how to use Tic Tac Toe effectively! Here are a few example prompts, tips, and the documentation of available commands.

Example prompts

  1. Prompt 1: "I want to submit my move on a 3x3 Tic Tac Toe board."

  2. Prompt 2: "The AI should make the first move on the board."

  3. Prompt 3: "I want to submit my move on a 4x4 Tic Tac Toe board with a difficulty level of 2."

  4. Prompt 4: "What is the current game status?"

  5. Prompt 5: "I want to submit my move on a 5x5 Tic Tac Toe board."

Features and commands

Feature/CommandDescription
POST https://api.ludum.dev/v1/tictactoeThis API endpoint allows users to submit their move on a Tic Tac Toe board and receive the AI's response move reflected in the board. The board should be submitted as a single array of integers representing the state of the board, with '1' for 'X' and '2' for 'O'. Users can also specify the difficulty level of the AI and the size of the board. The response includes the updated game board, a visual representation of the board, the game status, and the next player to make a move.

Configuration

User authenticationNo user authentication
API documentation

For AI

NameTicTacToe
DescriptionThe API endpoint is `POST https://api.ludum.dev/v1/tictactoe`. The API is designed for a turn-based game where users submit their move on a board with size depending on the chosen board size (9 for 3x3, 16 for 4x4, 25 for 5x5, or 36 for 6x6), and receive an updated board reflecting the AI's response move. The game can start with the AI submitting a board of all zeros or a missing board, or the player making their first move. Each player's move on the board is represented in the board array as '1' for 'X' and '2' for 'O'. For instance, if a player places an 'X' in the top left corner, the first element of the array becomes '1', or if an 'O' is placed in the center, the corresponding element in the array becomes '2'. The API response includes a 'boardDisplay' property for a visual representation of the board, but be aware that 'boardDisplay' numbering runs from 1 to n, where n is the total number of cells in the board, contrasting with the board array's 0 to n-1 indexing.

Updates

First added20 June 2023

Similar plugins