karmacoma pfp
karmacoma
@karma
Play it while it's hot: SAT or NOT. The first frame game where *you* figure out if a random 3SAT instance is satisfiable (or not). https://sat-or-not.onrender.com
21 replies
49 recasts
125 reactions

karmacoma pfp
karmacoma
@karma
3SAT is an instance of the Boolean Satisfiability Problem, where each clause has 3 terms. Sounds simple, but it's actually an NP-complete problem. You get a formula made of boolean terms a, b, c and their negation, and you need to figure out if there is an assignment that makes the formula true aka SATisfiable
1 reply
0 recast
4 reactions

karmacoma pfp
karmacoma
@karma
Some technical details: - written in Python with FastAPI and Z3 as a solver backend - hosted on Render - everytime you hit /play, you get a fresh new random 3SAT instance generated and rendered on the fly - in /verify, Z3 checks your answer
1 reply
0 recast
3 reactions