introduce bitloops

This commit is contained in:
mike
2026-01-14 12:01:13 +01:00
parent 8e049b3fa5
commit 6afe675a9d
3 changed files with 30 additions and 44 deletions

View File

@@ -90,10 +90,10 @@ public class MainTest {
}
@Test
public void testHoriz() {
assertTrue(Slot.from(1, 0L, 0L).horiz()); // Right
assertTrue(Slot.from(3, 0L, 0L).horiz()); // Left
assertFalse(Slot.from(0, 0L, 0L).horiz()); // Down
assertFalse(Slot.from(2, 0L, 0L).horiz()); // Up
assertTrue(Slot.horiz(1)); // Right
assertTrue(Slot.horiz(3)); // Left
assertFalse(Slot.horiz(0)); // Down
assertFalse(Slot.horiz(2)); // Up
}
@Test
public void testGridBasics() {