+ 3

Trying to alter my program to make a round robin tournament instead of a basic battle, what would you do to achieve this with th

Implementing a 10-player round-robin tournament I'm trying to Implement the functionality in the Battle class to run a 10 player round robin tournament. The tournament structure is as follows: +2 x 5 player round-robin brackets ~Each player in a bracket plays every other player in their bracket one time ~The two players per bracket with the most wins advance to the semi-finals. (If there is a tie for the winner or runner-up, just pick between the two) ~The 10 players across the two brackets can either be Enemy or Player objects, it doesn't matter whatsoever +Semi-Finals (single-elimination) ~The winners of each bracket then play the runner up of the opposite bracket +Finals ~The two semi-final winners square off ~At the end of the tournament announce who the overall winner was I'm trying to introduce a new method in the Battle class for the tournament logic. I don't want to modify any of my runBattle() code to get this to work other than update runBattle() to return a Character object representing who won that particular round of the battle. In my Main class I need to set up some code that will actually run the tournament when the program is run. The other six classes (CharacterCreator, Enemy, Player, Character, Weapon, and generator) I want to keep as is. Code: https://code.sololearn.com/c97iL0s0UpY0/#java

20th Apr 2022, 3:19 PM
Aaron DeViller
Aaron DeViller - avatar
4 Answers
+ 1
Sorry Ash, I only "understand" Java, and Python. And I use understand sparingly!
20th Apr 2022, 6:59 PM
Aaron DeViller
Aaron DeViller - avatar