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

Four in a Row bug #15

Open
asweigart opened this issue Nov 6, 2020 · 0 comments
Open

Four in a Row bug #15

asweigart opened this issue Nov 6, 2020 · 0 comments

Comments

@asweigart
Copy link
Owner

A reader submitted this:

I have had
some problems with "four in the row"; it crashed at irregular intervals (for
example, a 2 times 2 square of markers almost always crashed), and sometimes
played worse than a beginner, actually selecting the worst possible move.
Being a former programmer, I decided to investigate this, and found out that
both problems had the same root -- the "worst fitness" is not -1, it is a far
greater negative number (I saw at least -70 during my debug session).
Changing the losing constant and the initial value in the computer move
selection to, for example, -1000, seems to fix this issue.

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

No branches or pull requests

1 participant