-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
60 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7f0daa5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, again, not play-tested yet, but some immediate thoughts now that I invested a bit more time in checking the diff:
smartAttacking
andsmartDefending
as shortcuts for the evaluation of tiles, then move this check to the top of each method. No need to do all the checks and computation if afterwards you say "screw it" and manually overwrite the returned value anyway (at least for the defensive score).0
andn
to each score, the basic idea of a targeted approach would be kept but the AI would appear to act dumber/inexperienced/unsure overall. Thisn
could be part of the Intelligence enum: smart had no noise, medium had some noise, dumb had more noise, but ideally all AI levels withn < 30
(approximately) to keep them at least somewhat focused.7f0daa5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. I tried a lot of things at the end of the methods where the score is calulated but what I finally settled with could be just as well at the beginning.