chessgame

RESTful chessgame developed with kotlin

View on GitHub

htwdd.chessgame.server.util / BishopMovementUtility

BishopMovementUtility

class BishopMovementUtility : MovementUtility

Movement utility class for the bishop piece

Author Felix Dimmel

Since 1.0.0

Constructors

<init> BishopMovementUtility()
Movement utility class for the bishop piece

Functions

getMovementFields fun getMovementFields(movementFields: HashSet<Pair<Int, Int>>, row: Int, col: Int, match: Match): Unit
Calculate all possible movement fields for a bishop piece
getThreadedFields fun getThreadedFields(threatedFields: HashSet<Pair<Int, Int>>, row: Int, col: Int, match: Match): Unit
Calculate all possible threated fields for a bishop piece

Inherited Functions

getFilteredMovementFields fun getFilteredMovementFields(movementFields: HashSet<Pair<Int, Int>>, row: Int, col: Int, match: Match): Unit
Filters movement fields Remove fields which cause a check