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

Game::getPlayerPosition: instead of iterating whole map, track a vector with all head positions or position member of player (needs to be updated with head positions) #13

Open
Proliecan opened this issue Oct 9, 2023 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Proliecan
Copy link
Owner

No description provided.

@Proliecan Proliecan added enhancement New feature or request good first issue Good for newcomers labels Oct 9, 2023
@Proliecan Proliecan changed the title Game::getPlayerPosition: instead of iterating whole map, track a vector with all head positions (needs to be updated with head positions) Game::getPlayerPosition: instead of iterating whole map, track a vector with all head positions or position member of player (needs to be updated with head positions) Oct 9, 2023
@Proliecan
Copy link
Owner Author

Running time atm:
O(n²) : n = player number

@Proliecan
Copy link
Owner Author

Proliecan commented Oct 9, 2023

that means that void Game::gameLoop()
has O(n³)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant