mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
LibChess: Factorize the returned StringView
for a draw
This commit is contained in:
parent
55c5639004
commit
597faaff5f
Notes:
sideshowbarker
2024-07-17 04:03:27 +09:00
Author: https://github.com/LucasChollet
Commit: 597faaff5f
Pull-request: https://github.com/SerenityOS/serenity/pull/17333
Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 0 additions and 5 deletions
|
@ -926,15 +926,10 @@ StringView Board::result_to_points_string(Result result, Color turn)
|
|||
case Result::BlackResign:
|
||||
return "1-0"sv;
|
||||
case Result::StaleMate:
|
||||
return "1/2-1/2"sv;
|
||||
case Chess::Board::Result::FiftyMoveRule:
|
||||
return "1/2-1/2"sv;
|
||||
case Chess::Board::Result::SeventyFiveMoveRule:
|
||||
return "1/2-1/2"sv;
|
||||
case Chess::Board::Result::ThreeFoldRepetition:
|
||||
return "1/2-1/2"sv;
|
||||
case Chess::Board::Result::FiveFoldRepetition:
|
||||
return "1/2-1/2"sv;
|
||||
case Chess::Board::Result::InsufficientMaterial:
|
||||
return "1/2-1/2"sv;
|
||||
case Chess::Board::Result::NotFinished:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue