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

Establish vote count ordering #997

Merged
merged 2 commits into from
Mar 16, 2022
Merged

Establish vote count ordering #997

merged 2 commits into from
Mar 16, 2022

Conversation

appgurueu
Copy link
Contributor

@appgurueu appgurueu commented Mar 16, 2022

Currently vote counts aren't ordered. pairs traversal means any order is possible.

This is "fixed" here. Vote counts are output in ascending order. It does so by iterating over the lengths in the correct order and checking whether there are votes. Not an issue for a max of 5 rounds. Sorting would likely be less efficient and more of a hassle here.

Needs testing.

@savilli
Copy link
Contributor

savilli commented Mar 16, 2022

LGTM

@LoneWolfHT LoneWolfHT merged commit 45b9c4c into MT-CTF:master Mar 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants