aboutsummaryrefslogtreecommitdiff
path: root/src/bitboard.ha
blob: 8af340302608afe99019cf9666d6aa1b254535e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use fmt;

fn printBitboard(bb: u64) void = {
	for (let i = 0; i < 64; i+= 1) {
		fmt::printfln("{}", ((bb >> i) & 1) && '1' || '.');
	};
	// if ((index + 1) % 8 == 0) {
	// };
};

@test fn printBitboard() void = {
	let bb: u64 = 123u64;
	printBitboard(bb);

};