A set of amateur Sudoku solvers implemented with features from C23 and C2Y standard.
brute_force.c: Use_BitInt()to encode constraints of the entire board in a single integer.graph_color.c: Use<stdbit.h>to decode constraint bitmasks of each cell.16x16_embed/puzzle.h: Use#embedto load board in a file in compile-time._c2y.cvariants:ifdeclaration and named loop.
Subgrid can be any rectangular as long as (X*Y)<=61, board size is implicitly (X*Y)*(Y*X).
cc -O2 -std=c23 {pick-algo}.c -I ./{pick-board} -o out && ./out
Compiler/libc requirements:
<stdbit.h>:glibcv2.39+- C23 features:
gcc-14(#embed needs 15),clang-19,kefir 0.5,slimcc - C2Y
ifdeclaration and named loop:gcc-15,slimcc