betterchess

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 516b6ba7da53d270c1f293af97ff81369df1ae0c
parent 0cc22e2526f58d1399c8963f00f0a4df00171433
Author: thing1 <thing1@seacrossedlovers.xyz>
Date:   Wed, 21 Jan 2026 00:36:21 +0000

simple version of chess on the command line is now playable

Diffstat:
Mchess/chess.ha | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/chess/chess.ha b/chess/chess.ha @@ -85,6 +85,7 @@ export fn movepiece(b: *board, x1: i64, y1: i64, x2: i64, y2: i64) (void | !empt export fn print_board(b: board, f: io::handle) void = { for (let p .. b.pieces) { + if (p.dead) continue; let text = if (p.team == color::WHITE) ascii::toupper(p.ty: rune) else p.ty: rune; fmt::fprintf(f, "{} {} {}\n", text, p.x, p.y)!; };