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

Randomize fight order in each round #8

Closed
WinnieCWu opened this issue Jan 11, 2022 · 1 comment
Closed

Randomize fight order in each round #8

WinnieCWu opened this issue Jan 11, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@WinnieCWu
Copy link
Owner

Randomize fight order in the fight() function for each new enemy-robot round

@WinnieCWu WinnieCWu added the enhancement New feature or request label Jan 11, 2022
@WinnieCWu WinnieCWu self-assigned this Jan 11, 2022
@WinnieCWu
Copy link
Owner Author

Randomized the fight order using Math.random() and creating variable isPlayerTurn.

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

No branches or pull requests

1 participant