Skip to content

Commit

Permalink
remis had nonexistend cases
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobPreiss committed Jan 17, 2025
1 parent 61120af commit e6709e2
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/main/scala/Model/ChessComponent/DevourChess/Remis.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ object Remis {
return false
}
val bishopPositions = BasicChessFacade.piecesPositions(board, bishopPieceList)
if(bishopPositions.size != 2) {
return false
}
if(BasicChessFacade.isColorPiece(fen, bishopPositions(0)) == BasicChessFacade.isColorPiece(fen, bishopPositions(1))) {
return false
}
val Color1 = bishopPositions(0) match {
case white1 if(bishopPositions(0) / 8) % 2 == 0 && bishopPositions(0) % 2 == 0 => Color.WHITE
case black1 if(bishopPositions(0) / 8) % 2 == 0 && bishopPositions(0) % 2 == 1 => Color.BLACK
Expand Down

0 comments on commit e6709e2

Please sign in to comment.