Chess Duels
20 Views
2 Executions

[Open Source] Best Move Player

Doesn't work on Xeno SolaraMarked by the uploader
Chess Duels
Aerobyte
Aerobyte10K executions
2 days ago · Updated

Reviewed by QueueSpeedDemonPaid revieweron How review works

Please login to perform these actions:

[Open Source] Best Move Player is a Chess Duels script for Roblox, uploaded to ScriptBlox on Nov 7, 2026. Reviewed by a person on Nov 9, 2026.

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Doesn't work on Xeno or Solara. The uploader marked it.

Also noticed:

Description

Plays the best bot move at "titanic" level

View Raw
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local PlayMove = ReplicatedStorage:WaitForChild("ChessRemotes"):WaitForChild("Action")

local Engine = require(ReplicatedStorage.Chess.Engine)
local Bot = require(ReplicatedStorage.Chess.Bot)

local Current = filtergc("function", { Name = "current" })
assert(Current[1](), "no active game")

local State = Current[1]().state

local WKing, BKing = 5, 61
for I = 1, 64 do
	if State.board[I] == 6 then
		WKing = I
	elseif State.board[I] == -6 then
		BKing = I
	end
end

local Game = {
	board = table.clone(State.board),
	turn = State.turn,
	castle = table.clone(State.castle),
	ep = State.ep,
	half = State.half,
	full = State.full,
	kings = {
		[1] = WKing,
		[-1] = BKing,
	},
}

local _, BestMove = Bot.analyze(Game, 5, 4)
if BestMove then
	PlayMove:FireServer("move", {
		from = BestMove.from,
		to = BestMove.to,
		promo = BestMove.promo or 0,
	})


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!