More cleanup.

This commit is contained in:
Joachim 2018-08-24 21:15:55 +02:00
parent 66eebbaa38
commit f4a3535186

View File

@ -49,4 +49,11 @@ enum class Move {
return this.toString().substring(0, 1) != otherMove.toString().substring(0, 1) return this.toString().substring(0, 1) != otherMove.toString().substring(0, 1)
} }
/**
* Are both moves on the same face? Would be true for F2 and F_, for example.
*/
infix fun sameFace(otherMove: Move): Boolean {
return !otherFace(otherMove)
}
} }