No description
  • Zig 96.8%
  • Nix 3.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
yuuhikaze da9801a758 feat(n_tile): pretty-print plain-digit large boards too
The quadrant separators and dividers used to be tied to letter-labeled
inputs, so a plain-digit 80-tile rendered as a bare digit grid. Tie them
to the board size instead: any board with more than one quadrant gets
separators and dividers, labels or not. Merge the labeled and plain
renderers back into a single printState.
2026-11-12 16:55:21 -05:00
docs refactor(n_tile): drop pattern database and IDA* search 2026-11-12 16:21:32 -05:00
n_tile feat(n_tile): pretty-print plain-digit large boards too 2026-11-12 16:55:21 -05:00
.gitignore chore(gitignore): ignore zig build artifacts 2026-09-15 19:47:39 -05:00
flake.lock chore(flake): lock to appropiate Zig version 2026-11-12 15:53:39 -05:00
flake.nix chore(flake): lock to appropiate Zig version 2026-11-12 15:53:39 -05:00
n_queens.zig refactor(n_tile): move board instances to instances/, single side_length variable 2026-11-12 16:02:00 -05:00
README.md refactor(n_tile): move board instances to instances/, single side_length variable 2026-11-12 16:02:00 -05:00

Homework 01

Artificial intelligence coursework, solutions made in Zig.

Environment

Don't have Zig installed, or not sure it's the right version? Run this from the repo root and a matching toolchain drops into your shell, nothing to install by hand:

nix develop

Problems

  • n-tile puzzle — sliding tiles solved with BFS, DFS, and A* (n_tile/)
  • N-queens — all solutions found by backtracking (n_queens.zig)