Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pairing in a list
#7
You're asking a bit too much. Wink
When i plan to make an app like, 4-in-a-row, blackjack, Texas hold'm, even swiss pairing,
i know that there are many people who published a solution for that.
I never look at those, because (a), there is no fun in it, (b) by the time you figured out what
somebody else has done, you may have done it yourself.

I will elaborate on my matches idea:
Three players: A, B, C (license numbers as you call them)
A against B, A starts with white : 'A-B', if B starts with white 'B-A'.
You can easily check if 'A against B' has already been played with the "in list" function.(or B-A as well)
You can tell how many times A had white, by counting the number of 'A-x'' in the list.
You can count the number of matches A played. (black + white distinctive)
You can also tell who A did not play.
You can link A directly to your dictionary.
Still in the same list, if you want to show who won, you can do 'a-B', 'B-c' if your licence numbers have a string in them.
Limitless really...
Paul
Reply


Messages In This Thread
pairing in a list - by jakemace - Feb-02-2021, 03:57 PM
RE: swiss pairing chess tournament - by DPaul - Feb-02-2021, 06:25 PM
RE: swiss pairing chess tournament - by jakemace - Feb-02-2021, 09:45 PM
RE: swiss pairing chess tournament - by DPaul - Feb-03-2021, 07:33 AM
RE: swiss pairing chess tournament - by jakemace - Feb-03-2021, 03:23 PM
RE: swiss pairing chess tournament - by jakemace - Feb-03-2021, 05:25 PM
RE: swiss pairing chess tournament - by DPaul - Feb-04-2021, 07:18 AM
RE: swiss pairing chess tournament - by jakemace - Feb-04-2021, 03:09 PM
RE: swiss pairing chess tournament - by ritta - Feb-04-2021, 04:33 PM
RE: swiss pairing chess tournament - by DPaul - Feb-06-2021, 07:40 AM
making unique pairs in a list - by jakemace - Feb-05-2021, 05:26 PM
RE: making unique pairs in a list - by bowlofred - Feb-05-2021, 05:34 PM
RE: making unique pairs in a list - by jakemace - Feb-05-2021, 06:20 PM
RE: making unique pairs in a list - by Jeff900 - Feb-05-2021, 07:52 PM
RE: making unique pairs in a list - by jakemace - Feb-05-2021, 08:08 PM
RE: making unique pairs in a list - by Jeff900 - Feb-05-2021, 08:32 PM
RE: making unique pairs in a list - by buran - Feb-05-2021, 07:57 PM
RE: making unique pairs in a list - by jakemace - Feb-05-2021, 08:03 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020