package Ġpl . m ich al perl ak . tr f . model Ċ Ċ enum Ġclass ĠGame Result ( ĊĠĠĠ Ġvar arg Ġval Ġcodes : ĠString Ċ ) Ġ{ ĊĠĠĠ ĠFor fe it Loss ("- "), ĊĠĠĠ ĠFor fe it Win ("+ "), ĊĠĠĠ ĠWin LessThan One Move (" W "), ĊĠĠĠ ĠDraw LessThan One Move (" D "), ĊĠĠĠ ĠLoss LessThan One Move (" L "), ĊĠĠĠ ĠRegular Win (" 1 "), ĊĠĠĠ ĠRegular Draw (" =" ), ĊĠĠĠ ĠRegular Loss (" 0 "), ĊĠĠĠ ĠHalf Point By e (" H "), ĊĠĠĠ ĠFull Point By e (" F "), ĊĠĠĠ ĠPair ing Allocated By e (" U "), ĊĠĠĠ ĠZero Point By e (" Z ", Ġ""); ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġfun Ġfrom ( code : ĠString , Ġdefault : ĠGame Result Ġ= ĠZero Point By e ): ĠGame Result Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ Ġvalues (). first OrNull Ġ{ Ġit . codes . contains ( code ) Ġ} Ġ?: Ġdefault ĊĠĠĠ Ġ} Ċ }