-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ CMake: reduce required from 3.14 to 3.8 to support VS2017
+ Source: - moved necessary STD headers used by bmai_ap.cpp to principal header bmai.h - fixed some cast warnings. These are all acceptable loss of precision. + Mechanics - Twin dice: the "Dice()" method was incorrectly casting the return value of 1/2 to a "bool". That will not work in certain compilers. Fixed to return integer. - Morphing: fixed so rule doesn't run if not doing an attack. This was triggering an assert + AI - GetAttackAction(): fixed several uninitialized variables, pariticularly "score". In a release build this could have resulted in effectively arbitrary scores, therefore resulting in incorrect actions. In a debug build, this would have had very odd looking scores but would have worked. + Tests: - bug11_in.txt from github issues
- Loading branch information
Showing
6 changed files
with
40 additions
and
18 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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
game | ||
preround | ||
player 0 3 0 | ||
W | ||
om34 | ||
T | ||
player 1 5 0 | ||
^10 | ||
s11 | ||
d12 | ||
z13 | ||
X | ||
ply 3 | ||
max_sims 100 | ||
min_sims 5 | ||
maxbranch 400 | ||
getaction |
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