chessgame

RESTful chessgame developed with kotlin

View on GitHub

htwdd.chessgame.server.util / SANUtility

SANUtility

class SANUtility

Utility class to handle a String as standard algebraic notation (SAN)

Author Felix Dimmel

Since 1.0.0

Constructors

<init> SANUtility()
Utility class to handle a String as standard algebraic notation (SAN)

Companion Object Functions

calcSANFromAIMove fun calcSANFromAIMove(startField: Field, endField: Field, checkmate: Boolean, check: Boolean, match: Match): String
Calculate SAN string with given information from ai move
validateSAN fun validateSAN(draw: Draw, match: Match): Boolean
Validate a given draw based on his SAN code