No description
- Zig 92.4%
- Prolog 5.3%
- Nix 2.3%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Break n_tile.zig into one module per concern under src/: core, parse, print, node, expansion, search, heuristics, pdb, main, and tests. Root module moves to src/main.zig in build.zig. Docs: add layout section and fix flags table (trace -> trace_tui, add trace_gui and ida_star_linear_conflict). Ignore viz/. |
||
| docs | ||
| n_tile | ||
| sudoku | ||
| .gitignore | ||
| 04_farmer.pl | ||
| 05_missionaries.pl | ||
| flake.lock | ||
| flake.nix | ||
| n_queens.zig | ||
| README.md | ||
Artificial Intelligence Coursework
Artificial intelligence coursework, solutions made in Zig and Prolog.
Environment
Don't have Zig or SWI-Prolog installed, or not sure they're the right versions? Run this from the repo root and a matching toolchain drops into your shell, nothing to install by hand:
nix develop
Homework 01
Problems
- n-tile puzzle — sliding tiles solved with BFS, DFS, and A* (
n_tile/) - Farmer, wolf, goat, and cabbage —
04_farmer.pl - Missionaries and cannibals —
05_missionaries.pl - Sudoku — CSP backtracking with MRV, LCV, and forward checking (
sudoku/)