From 8892d0c639c35fd9a73558239d35072cb3fc8d69 Mon Sep 17 00:00:00 2001 From: vonavi Date: Thu, 1 Jan 2015 13:54:56 +0300 Subject: [PATCH] Change the representation of draw. --- game-add | 2 +- parse-games | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/game-add b/game-add index f19c2b6..909dacb 100755 --- a/game-add +++ b/game-add @@ -307,7 +307,7 @@ function game_get_result { if [[ $res == 1/2-1/2 ]]; then # Representation of draw - res=1/2 + res="½-½" elif [[ $ply_fst != $white ]]; then res=$(rev <<< $res) fi diff --git a/parse-games b/parse-games index 747bf5f..a78cf82 100755 --- a/parse-games +++ b/parse-games @@ -27,7 +27,7 @@ function parse_tour_info { local tour_info=$(cat "${REPO_DIR}/${TOURNAMENT}/tours/${tour}/tour_info"; echo) local date_re="[0-9?]{2}\.[0-9?]{2}\.[0-9?]{4}" - local res_re="(1-0|1/2|0-1)" + local res_re="(1-0|½-½|0-1)" while read line; do if [[ $line =~ ^($date_re)\ +([^\ ]+)\ +-\ +([^\ ]+)(\ +$res_re)? ]]; then local date=${BASH_REMATCH[1]}