NotationFormatter

interface NotationFormatter

Interface for a notation formatter to be used by front end console implementations. Different notation formatters could be made for standard chess and asian chess variants.

Functions

coordinateToStr
Link copied to clipboard
abstract fun coordinateToStr(c: Coordinate2D): String
Takes a coordinate and converts to the string representation of a coordinate.
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
abstract fun moveToStr(move: Move2D): String
Takes a Move2D and converts to a readable representation
strToCoordinate
Link copied to clipboard
abstract fun strToCoordinate(s: String): Coordinate2D?
Takes a string representation of a coordinate and converts to a coordinate.
toString
Link copied to clipboard
open fun toString(): String

Inheritors

ChessNotationInput
Link copied to clipboard