Skip Menu |

This queue is for tickets about the Games-Tournament-Swiss CPAN distribution.

Report information
The Basics
Id: 28834
Status: resolved
Priority: 0/
Queue: Games-Tournament-Swiss

People
Owner: Nobody in particular
Requestors: bartolin [...] gmx.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: crosstable, pairingtable complain about wrong total scores
Date: Tue, 14 Aug 2007 19:09:25 +0200
To: bug-Games-Tournament-Swiss [...] rt.cpan.org
From: Christian Bartolomaeus <bartolin [...] gmx.de>
Download signature.asc
application/pgp-signature 189b

Message body not shown because it is not plain text.

Hi, I found two (solvable) problems with the scripts "crosstable" and "pairingtable" from script_files/. Both scripts complained about "total scores in round 1 game with players 11 1 not 0 at /opt/perl_modules/Games-Tournament-Swiss-0.04/script_files/crosstable.orig line 74." After replacing the relevant section of the scripts with the code from "pair" the errors went away. So I guess, you just didn't update those two scripts after making some changes elsewhere. Attached you find the output from $> diff crosstable crosstable.orig > diff_crosstable and $> diff pairingtable pairingtable.orig > diff_pairingtable [I copied the scripts to <name>.orig before changing the code.] Best regards Christian

Message body is not shown because sender requested not to inline it.

Message body is not shown because sender requested not to inline it.

Subject: Re: [rt.cpan.org #28834] crosstable, pairingtable complain about wrong total scores
Date: Mon, 20 Aug 2007 01:10:49 +0000
To: Christian Bartolomaeus via RT <bug-Games-Tournament-Swiss [...] rt.cpan.org>
From: Dr Bean <drbean [...] cpan.org>
On Tue, 14 Aug 2007, Christian Bartolomaeus via RT wrote: Show quoted text
> Hi,
Show quoted text
> I found two (solvable) problems with the scripts "crosstable" and > "pairingtable" from script_files/. Both scripts complained about
Show quoted text
> "total scores in round 1 game with players 11 1 not 0 at /opt/perl_modules/Games-Tournament-Swiss-0.04/script_files/crosstable.orig line 74."
Show quoted text
> ... So I guess, you just didn't update those > two scripts after making some changes elsewhere.
That looks to be the problem. I had changed the form of the reports of the results of the round, from: 1: 0 2: 0.5 3: 1 4: 0.5 into: 'Laver, Rod': Loss 'Sampras, Pete': Draw 'McEnroe, John': Win 'Hoad, Lew': Draw I didn't make the changes to crosstable and pairingtable required to handle this new form. I don't know the best form to record the round results in a YAML file or in what form arbiters would produce such a list. I changed it because I wasn't able to remember who had what pairing number and because a score of zero was ambiguous, representing both not having been there and a loss, two different results. I am using this is in a non-chess educational context, and am generating the file automatically so I can be fairly flexible on the format. Another format could be: - table: 6 black: loss white: win - table: 7 black: draw white: draw or 6: white: win black: loss 7: white: win black: loss or 6: Laver: win McEnroe: loss 7: Hoad: win Sampras: loss That way, you see the result at each table and can pick up mistakes more easily. The downside is the players are not in any consistent order from round to round. I made the changes to crosstable (Changes to pairingtable I had already made, but had not uploaded). I will upload them to CPAN when I accumulate a few other changes, or when I work out how to upload individual parts of the distribution. -- Greg Matheson It was said a million monkeys on a million typewriters would eventually write the works of Shakespeare. Now, thanks to the Internet, we know this is not so. --Robert Wilensky
Subject: Re: [rt.cpan.org #28834] crosstable, pairingtable complain about wrong total scores
Date: Mon, 20 Aug 2007 10:00:34 +0200
To: Dr Bean via RT <bug-Games-Tournament-Swiss [...] rt.cpan.org>
From: Christian Bartolomaeus <bartolin [...] gmx.de>
Hi, * On 2007-08-19 Dr Bean via RT (bug-Games-Tournament-Swiss@rt.cpan.org) wrote: Show quoted text
> [...]
> > ... So I guess, you just didn't update those > > two scripts after making some changes elsewhere.
> > That looks to be the problem. I had changed the form of the reports > of the results of the round, from: > > 1: 0 > 2: 0.5 > 3: 1 > 4: 0.5 > > into: > > 'Laver, Rod': Loss > 'Sampras, Pete': Draw > 'McEnroe, John': Win > 'Hoad, Lew': Draw > > [...] > I don't know the best form to record the round results in a YAML > file or in what form arbiters would produce such a list.
May I suggest to use the following symbols instead of "Loss", "Win" etc.: Win: 1 Draw: 0.5 or = Loss: 0 Bye: + Absent: - I would say those are fairly common for chess tournaments. Furthermore, sometimes '=' (instead of '0.5') is used to represent a draw. The advantage of '=' is that it's only one character, so it's sometimes easier to use for graphical representation or recording of results. Actually I'm trying to write a (simple) web frontend to your scripts, so that one can use them to organize chess tournaments (e.g. our club championship). For entering scores I will use the following: 1 : 0 = : = 0 : 1 + : - - : + - : - (I'm not sure whether I need this.) Show quoted text
> I am using this is in a non-chess educational context, and am > generating the file automatically so I can be fairly flexible on > the format.
I'm a bit curious about this non-chess educational context you are speaking about. Maybe I should try harder to imagine a non-chess use ... Show quoted text
> Another format could be: > > - table: 6 > black: loss > white: win > - table: 7 > black: draw > white: draw > > or > > 6: > white: win > black: loss > 7: > white: win > black: loss > > or > > 6: > Laver: win > McEnroe: loss > 7: > Hoad: win > Sampras: loss
I like the last one most. I guess you will -- should the occasion arise -- use the complete names as in: 6: 'Laver, Rod': win 'McEnroe, John': loss 7: 'Hoad, Lew': win 'Sampras, Pete': loss Show quoted text
> [...] > The downside is the players are not in any consistent order from > round to round.
I think that's not so important as one can easily search for a specific player and furthermore the players are (roughly) ordered according to their total scores. Show quoted text
> I made the changes to crosstable (Changes to pairingtable I had > already made, but had not uploaded). I will upload > them to CPAN when I accumulate a few other changes, or when I > work out how to upload individual parts of the distribution.
Thanks a lot. Christian
Download signature.asc
application/pgp-signature 189b

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #28834] crosstable, pairingtable complain about wrong total scores
Date: Wed, 22 Aug 2007 14:41:48 +0000
To: Christian Bartolomaeus via RT <bug-Games-Tournament-Swiss [...] rt.cpan.org>
From: Greg Matheson <drbean [...] freeshell.org>
On Mon, 20 Aug 2007, Christian Bartolomaeus via RT wrote: Show quoted text
> Queue: Games-Tournament-Swiss > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=28834 >
Show quoted text
> May I suggest to use the following symbols instead of "Loss", "Win" > etc.:
Show quoted text
> Win: 1 > Draw: 0.5 or = > Loss: 0 > Bye: + > Absent: -
Show quoted text
> I would say those are fairly common for chess tournaments. > Furthermore, sometimes '=' (instead of '0.5') is used to represent a > draw. The advantage of '=' is that it's only one character, so it's > sometimes easier to use for graphical representation or recording of > results.
I will probably follow something like that for version 0.06. I want to vary the scores for win and losses. For my purposes I also want to give more points for a loss than an absence. Eg, 0.5 for a loss and 0 for an absence. But I will probably make something like your suggestion the default. Thanks. Show quoted text
> Actually I'm trying to write a (simple) web frontend to your scripts, > so that one can use them to organize chess tournaments (e.g. our club > championship). For entering scores I will use the following:
Show quoted text
> 1 : 0 > = : = > 0 : 1 > + : - > - : + > - : - (I'm not sure whether I need this.)
Don't free programs to print out crosstables and pairing tables already exist? I think I picked up the idea of what a pairing table looks like from http://www.chesschat.org, but from the output of a proprietary program. The web front end sounds like a good idea. Show quoted text
> I'm a bit curious about this non-chess educational context you are > speaking about.
I teach English as a Foreign Language to reluctant students. Competition can be motivating, but these students have had all the interest in learning knocked out of them by the exam system. I saw setting up a Swiss system as an experiment in motivation. The experiment hasn't worked, but it's been interesting writing the program. Show quoted text
> > Another format could be:
... Show quoted text
> > or
Show quoted text
> > 6: > > Laver: win > > McEnroe: loss > > 7: > > Hoad: win > > Sampras: loss
Show quoted text
> I like the last one most. I guess you will -- should the occasion > arise -- use the complete names as in:
Show quoted text
> 6: > 'Laver, Rod': win > 'McEnroe, John': loss > 7: > 'Hoad, Lew': win > 'Sampras, Pete': loss
I don't want to have to require the full name with the inverted commas. Perhaps I will be able to require only surnames, unless 2 people from the same family were playing each other on the same table! Show quoted text
> > [...] > > The downside is the players are not in any consistent order from > > round to round.
Show quoted text
> I think that's not so important as one can easily search for a > specific player and furthermore the players are (roughly) ordered > according to their total scores.
Good points. I think I will use that format to enter scores. It's difficult to handle 2 scores on the same line, as in Laver 1:0 McEnroe Show quoted text
> > I made the changes to crosstable (Changes to pairingtable I had > > already made, but had not uploaded). I will upload > > them to CPAN when I accumulate a few other changes, or when I > > work out how to upload individual parts of the distribution.
I have since uploaded version 0.5.
Subject: Re: [rt.cpan.org #28834] crosstable, pairingtable complain about wrong total scores
Date: Wed, 22 Aug 2007 21:01:59 +0200
To: Greg Matheson via RT <bug-Games-Tournament-Swiss [...] rt.cpan.org>
From: Christian Bartolomaeus <bartolin [...] gmx.de>
Hi, * On 2007-08-22 Greg Matheson via RT (bug-Games-Tournament-Swiss@rt.cpan.org) wrote: Show quoted text
> [...]
> > Actually I'm trying to write a (simple) web frontend to your scripts, > > so that one can use them to organize chess tournaments (e.g. our club > > championship). For entering scores I will use the following:
>
> > 1 : 0 > > = : = > > 0 : 1 > > + : - > > - : + > > - : - (I'm not sure whether I need this.)
> > Don't free programs to print out crosstables and pairing tables > already exist? I think I picked up the idea of what a pairing > table looks like from http://www.chesschat.org, but from the > output of a proprietary program. > > The web front end sounds like a good idea.
yes, I'll have a look what free programs are around to do the job. I just meant to say that I'm inclined to use HTML forms with those six options to enter the actual results for my web front end. If my attempts to write some CGI scripts don't prove to be futile, I'll gladly share them. But since I'm a Perl (and programming) novice it will take some time in any case. Show quoted text
> > I like the last one most. I guess you will -- should the occasion > > arise -- use the complete names as in:
>
> > 6: > > 'Laver, Rod': win > > 'McEnroe, John': loss > > 7: > > 'Hoad, Lew': win > > 'Sampras, Pete': loss
> > I don't want to have to require the full name with the inverted > commas. Perhaps I will be able to require only surnames, unless 2 > people from the same family were playing each other on the same > table!
Sounds sensible to me. But it would be good to be able to optionally give the full name with inverted commas. But I guess that's just what you have in mind. Best regards Christian
Subject: Re: [rt.cpan.org #28834] crosstable, pairingtable complain about wrong total scores
Date: Thu, 23 Aug 2007 08:21:25 +0000
To: Christian Bartolomaeus via RT <bug-Games-Tournament-Swiss [...] rt.cpan.org>
From: Greg Matheson <drbean [...] freeshell.org>
On Wed, 22 Aug 2007, Christian Bartolomaeus via RT wrote: Show quoted text
> Queue: Games-Tournament-Swiss > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=28834 >
Show quoted text
> Hi,
Show quoted text
> yes, I'll have a look what free programs are around to do the job. > I just meant to say that I'm inclined to use HTML forms with those > six options to enter the actual results for my web front end.
Okay I'll try to accommodate/support that in the next version. Show quoted text
> If my attempts to write some CGI scripts don't prove to be futile, > I'll gladly share them. But since I'm a Perl (and programming) novice > it will take some time in any case.
It's fun trying. Show quoted text
> Sounds sensible to me. But it would be good to be able to optionally > give the full name with inverted commas. But I guess that's just what > you have in mind.
OK I'll try to support that too. Let's close this bug report and if it doesn't work in the next version, can you submit a new bug report?
Subject: Re: [rt.cpan.org #28834] crosstable, pairingtable complain about wrong total scores
Date: Mon, 27 Aug 2007 09:06:13 +0200
To: Greg Matheson via RT <bug-Games-Tournament-Swiss [...] rt.cpan.org>
From: Christian Bartolomaeus <bartolin [...] gmx.de>
* On 2007-08-23 Greg Matheson via RT (bug-Games-Tournament-Swiss@rt.cpan.org) wrote: Show quoted text
> [...] > Let's close this bug report and if it doesn't work in the next > version, can you submit a new bug report?
Yes, please close this bug report. At the moment, everything seems to work fine. Best regards Christian
Fixed in version 0.05. But I didn't write any tests to make sure this bug doesn't come back. Actually, I don't have any tests for any of the scripts, only for the modules. Having tests is more important for the modules. The scripts are like proof-of-concept. I didn't implement any of the things talked about in the bug report, like changing the format in which scores are recorded, using +,-,=,0,0.5,1. Or grouping the scores of the 2 players at each table. Or allowing a 'nickname' for the player, instead of entering the full name. I shouldn't really be closing this report, so I'm marking it stalled.
I am closing this bug report. The bug in crosstable and pairingtable were fixed.