aboutsummaryrefslogtreecommitdiff
path: root/src/bitboard.ha
diff options
context:
space:
mode:
Diffstat (limited to 'src/bitboard.ha')
-rw-r--r--src/bitboard.ha15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/bitboard.ha b/src/bitboard.ha
new file mode 100644
index 0000000..8af3403
--- /dev/null
+++ b/src/bitboard.ha
@@ -0,0 +1,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);
+
+};