Skip to content

Improve error handling#16

Open
pkmnfrk wants to merge 2 commits intoaz64:masterfrom
pkmnfrk:errorHandling
Open

Improve error handling#16
pkmnfrk wants to merge 2 commits intoaz64:masterfrom
pkmnfrk:errorHandling

Conversation

@pkmnfrk
Copy link
Copy Markdown

@pkmnfrk pkmnfrk commented Feb 21, 2019

I have observed the PlaceItem method occasionally going into an infinite loop when it can't place an item. Rather than locking up indefinitely, show an error message encouraging the user to try a new seed.

…breaks. Relatedly, catch a situation where the randomizer gets stuck and can't place an item after 10,000 tries, and abort
};
}

int attempts = 0;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be better not to mix tabs and spaces for indentation. Issue is present throughout this pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants