ChessNotationInput

class ChessNotationInput : NotationFormatter

ChessNotationInput Converts standard ches notation to Coordinate2D and Coordinate2D, Move2D to readable string format. Is used for console front end.

Constructors

ChessNotationInput
Link copied to clipboard
fun ChessNotationInput()

Functions

coordinateToStr
Link copied to clipboard
open override fun coordinateToStr(c: Coordinate2D): String
Takes a Coordinate2D and converts it into standard chess notation.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
moveToStr
Link copied to clipboard
open override fun moveToStr(move: Move2D): String
Takes a Move2D and converts it to a readable chess notation.
strToCoordinate
Link copied to clipboard
open override fun strToCoordinate(s: String): Coordinate2D?
Takes a String representation of a coordinate and converts to a Coordinate2D.
toString
Link copied to clipboard
open fun toString(): String