1
Fork 0

Change the representation of draw.

master
vonavi 2015-01-01 13:54:56 +03:00
parent 8ddd334f99
commit 8892d0c639
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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]}