Round Robin Tournament Scheduling

Schedules - You must register to Post and Download => Programming => Topic started by: tamuztech on May 06, 2013, 06:58:13 PM

Title: pascal program
Post by: tamuztech on May 06, 2013, 06:58:13 PM
Hello, can you please help me?. I need code of round robin using pascal, this is my project. Best regards, Thanks.
Title: Re: pascal program
Post by: wbport on May 07, 2013, 07:38:26 AM
You might want to visit rrpair.htm (http://home.comcast.net/~wporter211/realsite/chess_etc/rrpair.htm) or the thread on C# code next to this one to see an example in C.  For the webpage you can visit other links from it or view the source.  Once you understand how they work, implementing them in any programming language with which you are familiar should be easy.

I used Pascal when I was in school twenty years ago but don't know if any place it is used in the real world.
Title: Re: pascal program
Post by: tamuztech on May 07, 2013, 04:54:01 PM
I don't know where to start, Im newbie in pascal...
Title: Re: pascal program
Post by: Ian Wakeling on May 08, 2013, 07:35:27 AM
Start by looking at the cyclic algorithm here (https://www.devenezia.com/downloads/round-robin/).  Set up the pairs of team numbers for round 1 in the first row of a matrix (two dimensional array).  So for the example shown this would look like (1 2 3 10 4 9 5 8 6 7),  then the rest of the schedule can be filled in by transforming the team numbers from the row above.  To duplicate the algorithm exactly you need the following  rules.

If the team above is 1 it stays the same.
If the team above is 2 it becomes 10 (or the highest team number)
Otherwise subtract one from the team number above.
Title: Re: pascal program
Post by: tamuztech on May 08, 2013, 01:38:17 PM
Thanks I have a code, but I don't know...can you check it outside the forum? can you write your mail?
Title: Re: pascal program
Post by: wbport on May 10, 2013, 08:06:47 AM
This model (http://home.comcast.net/~wporter211/realsite/chess_etc/rr3.htm) might help you understand how they work.  The chess tables I was replicating had the player with the highest even number as the anchor, but player 1 (or any other number < number of players) works as well.
Title: Re: pascal program
Post by: tamuztech on May 13, 2013, 08:21:06 AM
Understand...but I need code example...i have one...no bidimensional array...more simple...can you check it? thanks