|
From: | Garner, Robin |
Subject: | [Toad-devel] File format for tournament information |
Date: | Wed, 2 Apr 2003 13:43:17 +1000 |
Hi,
I have defined a
file format for exchanging tournament data - it is being implemented for my
system that does the Australian Tournament Rankings, to replace the ad-hoc
formats I read at the moment.
The attached file
TournRec.lhs is a Haskell parser for the tournament file (proof of
existence for a parser :), and the file format is specified in comments at the
start of the program. It's early enough days that the format can be
modified without much trouble.
Some examples of the
format this file reads are as follows:
------------------------------------------------------------------------------------------------
tournament version
1.0
title "Example tournament for testing the parser" venue "Cafe Cactus inside" date 17 Sep 2002 - 18 Sep 2002 player 1 "Robin
Garner" 1 2 loss, 2 3 win, 3 4 loss
player 2 "Guo Yiming" 1 1 win , 2 4 win, 3 3 win player 3 "Neville Smythe" 1 4 win, 2 1 loss, 3 2 loss player 4 "Gordon Sutton" 1 3 loss, 2 2 loss, 3 1 loss ---------------------------------------------------------------------------------------------
tournament version
1.0
title "Example tournament for testing the parser - with handicaps" venue "Cafe Cactus inside" date 17 Sep 2002 - 18 Sep 2002 player 1 "Robin
Garner" 1 2 h3 loss, 2 3 h4 win, 3 4 loss
player 2 "Guo Yiming" 1 1 h-3 win , 2 4 h - 5 win, 3 3 h -3 win player 3 "Neville Smythe" 1 4 win, 2 1 loss, 3 2 h 5 jigo player 4 "Gordon Sutton" 1 3 loss, 2 2 h 7 forfeit, 3 1 bye --------------------------------------------------------------------------------------------- Tournament
version 1.0Title "Example tournament for testing the parser - case sensitivity" venue "Cafe Cactus inside" date 17 sep 2002 - 18 Sep 2002 player 1 "Robin
Garner" 1 2 H3 loss, 2 3 h4 win, 3 4 loss
Player 2 "Guo Yiming" 1 1 h-3 win , 2 4 H - 5 win, 3 3 h -3 win PLAYer 3 "Neville Smythe" 1 4 win, 2 1 Loss, 3 2 h 5 jigo PLAYER 4 "Gordon Sutton" 1 3 loss, 2 2 h 7 foRFeit, 3 1 bYe ---------------------------------------------------------------------------------------------
--
robin
|
TournRec.lhs
Description: Binary data
[Prev in Thread] | Current Thread | [Next in Thread] |