refactor: improved line checks

This commit is contained in:
2026-04-02 17:45:03 +08:00
parent 975d363769
commit d4d428b577
2 changed files with 57 additions and 86 deletions
+1 -1
View File
@@ -332,7 +332,7 @@ describe('Boop - helper functions', () => {
const lines = checkGraduation(state, 'white');
expect(lines.length).toBe(1);
expect(lines[0]).toEqual([[2, 0], [1, 1], [0, 2]]);
expect(lines[0]).toEqual([[0, 2], [1, 1], [2, 0]]);
});
it('should not detect line with mixed piece types', () => {