# Chess & Checkers Game

<mark style="color:orange;">**This script is compatible with all frameworks.**</mark>

<mark style="color:green;">Here is an excerpt from the config.lua file : (parts of the excerpt are hidden) :</mark>

```lua
Config = {}

-- Enable or disable debug mode
Config.DEBUG = false

-- Key bindings for various actions during the game
Config.Play = keys["U"]         -- Key to play your turn
Config.Moves = keys["E"]        -- Key to show/hide possible moves
Config.Cancel = keys["R"]       -- Key to cancel/leave the game
Config.Yes = keys["RIGHT"]      -- Key to confirm/accept (Right Arrow)
Config.Insult = keys["DOWN"]    -- Key to taunt the opponent (Down Arrow)
Config.No = keys["LEFT"]        -- Key to decline/refuse (Left Arrow)
Config.Camera = keys["C"]       -- Key to switch camera view
Config.Gamemode = keys["G"]     -- Key to switch game mode (Chess/Checkers)

-- Game options
Config.RestartDelay = 20         -- Auto-restart delay (in seconds) after stalemate or checkmate
Config.CanPlayEnemyTurn = true   -- Allow player to play the enemy's turn (useful for solo practice)
Config.ShowPossibleMoves = true  -- Allow showing possible moves on the board

-- Texts displayed in the UI (can be customized or translated)
Config.Txt = {
    Chess = "Chess",
    Play = "Play",
    Cancel = "Leave",
    ShowMoves = "Show/Hide Moves",
    Promotion = "Promotion",
    PromotionSub = "Select a piece",
    MatchNul = "Draw",
    RepeatPos = "Position repeated three times",
    NoLegalMoves = "No legal move available",
    Checkmate = "Checkmate!",
    White = "white",
    Black = "black",
    WinColor = "%s wins!",   -- %s will be replaced with "white" or "black"
    Insult = "Taunt",
    Yes = "Yes!",
    No = "No!",
    Camera = "Camera",
    CheckerEnd = "Finish!",
    GameModeChess = "Chess",
    GameModeCheckers = "Checkers"
}

-- Chess board positions (world coordinates)
Config.ChessGames = {
    -- hidden
}

-- Camera angles for each chess game
Config.CameraAngles = {
  -- hidden
}
```
