OpeningBookParser

dicechess.engine.search.OpeningBookParser

Validates and parses opening-book TSV data, rejecting malformed entries before bot registration.

Expected TSV format (canonical OpeningBook.key mapped to comma-separated continuations):

rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - BPR	e2e4,f1c4

Attributes

Source
OpeningBookParser.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def parse(tsvStr: String): Either[Exception, Map[String, String]]

Parses the opening-book TSV string, returning a decoding Exception on malformed input.

Parses the opening-book TSV string, returning a decoding Exception on malformed input.

Attributes

Source
OpeningBookParser.scala