introduce bitloops

This commit is contained in:
mike
2026-01-12 23:25:59 +01:00
parent a9b4dfb422
commit 61d246e551
3 changed files with 65 additions and 60 deletions

View File

@@ -56,9 +56,9 @@ public class MainTest {
void testStaticSlotMethods() {
// Test static horiz
// dir 2 (right) is horizontal
assertTrue(Slot.horiz(2));
assertTrue(Slot.horizv2(1));
// dir 3 (down) is vertical
assertFalse(Slot.horiz(3));
assertFalse(Slot.horizv2(2));
}
@Test
@@ -78,7 +78,7 @@ public class MainTest {
@Test
public void testHoriz() {
assertTrue(Slot.from(2, 0L, 0L).horiz());
assertTrue(Slot.from(4, 0L, 0L).horiz());
assertTrue(Slot.from(0, 0L, 0L).horiz());
assertFalse(Slot.from(1, 0L, 0L).horiz());
assertFalse(Slot.from(3, 0L, 0L).horiz());
}