Questions tagged [tournament]

The tournament tag refers to any tournament style program. Only use when the question directly relates to programming tournament style programs.

112 questions
1
vote
1 answer

Round-robin algorithm to account for how many time a player plays first?

I'm quite familiar with how round robin works, now I'm trying to implement a function (Python works fine) to create round-robin matchings accounting for how many times during the tournament a player plays first. Ideally, I would like to have…
huncletheo
  • 63
  • 6
1
vote
1 answer

tournament winner python while loop

I made a function 'Match' which takes two country and return a winner according to my algorithm. EX) def Match(England, Brazil) ----> England, def Match(Mexico, France) ---> France I need to write function Winner which takes list of 2^n nations…
태주강
  • 23
  • 4
1
vote
1 answer

Get n * k unique sets of 2 from list of length n in Python

I have the following Python brainteaser: We arrange a 30-day programme with 48 participants. Every day in the programme, participants are paired in twos. Participants cannot have the same partners twice and all participants have to be partnered up…
1
vote
0 answers

What are the probabilities for a tournament based selection in a genetic algorithm?

So I have to calculate the probability of a "x" rank individual from an "N" population to win a tournament of 2 in order to solve this problem: Given 206 individuals, what is the probability of a rank 79 individual to survive a tournament of 2 if…
John Doe
  • 11
  • 1
  • 7
1
vote
1 answer

C# - Recommended SDK/Toolkit(s) For Drawing Tournament Bracket

I would like to develop a UI for creating/displaying single elimination brackets in C#. The only problem is, I am not a UI developer and I don't really know if there is a particular SDK/Toolkit/App/etc. that is the most supported for use. The…
1
vote
1 answer

4-Player Tournament Scheduling, Python

I am trying to develop an algorithm to generate a schedule for a game tournament my family hosts every year. I have written a solution that only partially works; it seems that it works for 2^x players, but not in between. Parcheesi is a game played…
1
vote
3 answers

Need help creating league schedule based on matchup table

I have an table with a set of teams and how many games they need to play against each other team like the one below: In this table, teams a, b, c, and d each play each other twice, and they play the other set of teams once each, for a total of ten…
1
vote
0 answers

Complex pairing algorithm - team tournament

I would like to ask for help with an algorithm I’ve been working on for quite some time. I actually programmed it a few years ago using greedy pairing mostly but I’m not satisfied. Any help would be greatly appreciated! So getting down to business.…
saZmer
  • 118
  • 1
  • 8
1
vote
1 answer

Logically sorted tournament fixtures

I have an upcoming Fifa Tournament and I've written a program that prints out the possible matchup's. The problem is that it is not logically sorted, meaning some players would have to play 5-6 sequential games while other would have to wait 6…
Audiosleef
  • 137
  • 3
  • 14
1
vote
0 answers

Round robin tournament where few "bad" matches are played thanks to Elo

I would like to make a round robin tournament, but with a twist. There are tons of round robin implementations around, but every single one I have seen so far generate a schedule and everyone follows it. My main issue I have with this is that often,…
B. Decoster
  • 7,723
  • 1
  • 32
  • 52
1
vote
1 answer

Designing tournament/matches database

I'm trying to design simple data base that will present some kind of tournament. So I have table that present 'Matches' (it contains two team's ID's), I've also created table 'Round' (one round contains few matches). And there's my question. I want…
1
vote
1 answer

Fitness Sharing in multi objective optimization

i'm writing a genetic algorithm that uses fitness sharing in tournament selection. in all the relevant literature that i found (Sareni for example) it is mentioned that the solution's own fitness (Fi) should be divided by the sum of its niche…
1
vote
0 answers

Round Robin Tournament Algorithm

I am currently trying to develop an algorithm for determining round robin matchups for a tournament. The current adaptation I am considering at the moment is as follows: Given n teams, (in this example, n = 8) the pairings are determined is…
Ram R
  • 11
  • 2
1
vote
1 answer

Team and Fight Randomizer in C

I'm trying to make a program, which puts a given amount of players in a given amount of teams. Afterwards they should be randomly chosen (eg. you roll the "dice" and Team 3's Player 42 and shall fight against Team 4's Player 22 (All the players are…
1
vote
0 answers

How to implement double elimination algorithm in php?

Hereby I have attached some code snippets, which I had implemented but it is still not working..... competitors are representing the names of teams that are participating in the competition. events are giving us the final result. rounds is…
Ankit Jindal
  • 3,672
  • 3
  • 25
  • 37