Best move and auto move
Key Required

Best move and auto move

♟️Chess Club♟️ [❄️]BloodScriptsBloodScripts 29.4K views 4.3K executesUpdated May 27, 2025
2.5/ 5(4 votes)
2250% Positive
Lua Script•82 lines (2574 chars)
-- Chess Club Auto Move (Sunfish local) - Detecta en passant y juega por ti
-- Hecho para ejecutores móviles sin GUI

local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local HttpService = game:GetService("HttpService")
local RunService = game:GetService("RunService")
local player = Players.LocalPlayer

local lastFEN = nil
local checkingMove = false
local sunfish

-- Intentar cargar Sunfish desde el juego
local function loadSunfish()
    local success, result = pcall(function()
        return require(Players.LocalPlayer:WaitForChild("PlayerScripts"):WaitForChild("AI"):WaitForChild("Sunfish"))
    end)
    if success then
        print("[INFO] Sunfish cargado correctamente.")
        return result
    else
        warn("[ERROR] No se pudo cargar Sunfish. El juego no lo tiene o tu executor no lo permite.")
        return nil
    end
end

sunfish = loadSunfish()
if not sunfish then return end -- No continuar si no hay motor

-- Obtener FEN del tablero
local function getFEN()
    local success, result = pcall(function()
        local tableSet = ReplicatedStorage:WaitForChild("InternalClientEvents"):WaitForChild("GetActiveTableset")
        local board = tableSet:Invoke()
        return board:WaitForChild("FEN").Value
    end)
    return success and result or nil
end

-- Obtener mejor movimiento desde Sunfish
local function getBestMoveSunfish(fen)
    local success, from, to = pcall(function()
        return sunfish:GetBestMove(fen, 2000) -- 2000 ms para pensar
    end)
    if success then
        return from, to
    else
        warn("[ERROR] Sunfish falló al calcular movimiento.")
        return nil
    end
end

-- Enviar el movimiento
local function submitMove(from, to)
    if not from then return end
    local move = from .. (to or "")
    ReplicatedStorage:WaitForChild("Chess"):WaitForChild("SubmitMove"):InvokeServer(move)
    print("[JUGADO] Movimiento enviado:", move)
end

-- Verifica si hay nuevo turno y juega
RunService.RenderStepped:Connect(function()
    if checkingMove then return end
    checkingMove = true

    local currentFEN = getFEN()
    if currentFEN and currentFEN ~= lastFEN then
        print("[INFO] Nuevo turno detectado.")
        lastFEN = currentFEN

        local from, to = getBestMoveSunfish(currentFEN)
        if from then
            print("[MEJOR MOVIMIENTO] " .. from .. " → " .. (to or ""))
            submitMove(from, to)
        else
            print("[ERROR] No se pudo calcular el movimiento.")
        end
    end

    checkingMove = false
end)

Features & Information

Best move and auto move (simplemente ejecutelo y juegue una partida este script se ah probado solo en Mobile) ¡LA API NO ES MIA EL SCRIPT SI!
#Mobile#Chessclub#Gratis#Chess

Community Comments (3)

BloodScriptsBloodScriptsMay 27, 2025

Díganme si les funciona, y que creen que podría agregar al script o mejorarlo.

thejonesgzthejonesgzMay 27, 2025

skid + ai

Kitty6688Kitty6688May 28, 2025

good stuff

More Scripts for ♟️Chess Club♟️ [❄️]