Added tests (WIP, failing)

This commit is contained in:
2024-06-21 10:37:56 +02:00
parent 1248288e98
commit abe163d09f
8 changed files with 89 additions and 19 deletions

View File

@@ -60,8 +60,10 @@ class TripletClue<C : ItemClass<C>>(val a: Item<C>, val b: Item<C>, val c: Item<
return false
}
if (ia == ib) {
return true
if (ia != -1 && ic != -1) {
if (ia + 2 == ic || ia == ic + 2) {
return true
}
}
if (isNeighbourRuleViolated(ia, ib) || isNeighbourRuleViolated(ib, ic)) {