chessgame

RESTful chessgame developed with kotlin

View on GitHub

htwdd.chessgame.server.util / CheckUtility

CheckUtility

class CheckUtility

Utility class handle threated field based on the piece type

Author Felix Dimmel

Constructors

<init> CheckUtility()
Utility class handle threated field based on the piece type

Companion Object Functions

calcThreatedFields fun calcThreatedFields(match: Match): Boolean
Calculate threated fields based on the piece type
checkmate fun checkmate(match: Match): Boolean
Calcualte possible movement fields based on the piece type