Saving a tournament is working

This commit is contained in:
2020-04-09 00:05:25 +02:00
parent a8fefcca3f
commit a3096138f9
3 changed files with 72 additions and 16 deletions

View File

@ -77,8 +77,8 @@ namespace TrackerLibrary
{
//Math.Pow(2, rounds);
int output = 0;
int totalTeams = 0;
for (int i = 1; i < rounds; i++)
int totalTeams = 1;
for (int i = 1; i <= rounds; i++)
{
totalTeams *= 2;
}
@ -90,7 +90,7 @@ namespace TrackerLibrary
private static int FindNumberOfRounds(int teamCount)
{
int output = 0;
int output = 1;
int val = 2;
while (val < teamCount)
{