Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve random games #399

Open
jensborch opened this issue Jul 25, 2023 · 0 comments
Open

Improve random games #399

jensborch opened this issue Jul 25, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request go Pull requests that update Go code

Comments

@jensborch
Copy link
Owner

jensborch commented Jul 25, 2023

Games are generated using Go rand.Shuffle, but creating games this way results in many identical games which is not optimal. Games should instead be created by finding all possible combinations of the available players.

The new "shuffle" method should have signature like:

func GameCombinations(players []*model.TournamentPlayer, tables []*model.TournamentTable) []*model.Game {
	var games []*model.Game

        ...	 

	return games
}
@jensborch jensborch added enhancement New feature or request go Pull requests that update Go code labels Jul 25, 2023
@jensborch jensborch self-assigned this Aug 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request go Pull requests that update Go code
Projects
None yet
Development

No branches or pull requests

1 participant