Make a tournament scheme draw... | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Make a tournament scheme draw...

Hey guys, I was lacking any will to sleep so in the past 3-4 hours I created a Fights Simulator game in .NET ( I can't post the code here because it containts several classes and interfaces and I'm lazy ). Anyway , i wan't to implement a method that makes the scheme of a large tournament by some sort of algorythm (cuz first I made it with for loop so that fighters [i] fights vs fighters [fighters.Length - i - 1] but it ain't cool...) I was thinking of random generator but i want weaker to fightstronger

25th Jul 2017, 2:12 AM
Ilian Ganchosov
Ilian Ganchosov - avatar
1 Réponse
+ 3
Maybe you could make a class for the fighters with name and rank properties, so the fighter objects can be matched by rank. So if rank is low, fight another fighter with higher rank.
25th Jul 2017, 7:20 AM
Bagshot
Bagshot - avatar