10 Views
1 Executions
solver + auto flag | open source
bLockerman's Minesweeper
1 day ago · Updated
Reviewed by QueueSherlockPaid revieweron How review works
solver + auto flag | open source is a bLockerman's Minesweeper script for Roblox, uploaded to ScriptBlox on Nov 11, 2026. Reviewed by a person on Nov 12, 2026.
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
idk, simple solver and auto flag
Updates
Script edited: Update script
local function solve(clues)
local known = {}
local changed = true
while changed do
changed = false
local residuals, byTile = {}, {}
for _, clue in ipairs(clues) do
local need, remaining = clue.count, {}
for _, id in ipairs(clue.ids) do
if known[id] == nil then
remaining[id] = true
else
need -= known[id]
end
end
local count = 0
for _ in pairs(remaining) do count += 1 end
if need < 0 or need > count then return {}, false end
if count > 0 and (need == 0 or need == count) then
local value = if need == 0 then 0 else 1
for id in pairs(remaining) do known[id] = value end
changed = true
elseif count > 0 then
local residual = {ids = remaining, count = count, need = need}
table.insert(residuals, residual)
for id in pairs(remaining) do
byTile[id] = byTile[id] or {}
table.insert(byTile[id], residual)
end
end
end
if not changed then
for _, small in ipairs(residuals) do
local first = next(small.ids)
for _, large in ipairs(byTile[first]) do
if small == large or small.count > large.count then continue end
local subset = true
for id in pairs(small.ids) do
if not large.ids[id] then
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!


