- Added poison counter check into the testsuite
- Decorelated the testsuite AI timer from the game timer to be able to have reproduceable results with AI tests. - Created a random generator wrapper class - Used two seperate instances of this random generator for AI and for the game - Added methods to load randoms into AI from a testcase - Fixed a probleme with undo and premade decks introduced in r4035 - Added basic test to test AI proliferate code - Cleaned up goblin_artillery test - Added AI tests into the testsuite test list - Fixed looping bug into the multi target AI code
This commit is contained in:
@@ -1,17 +1,16 @@
|
||||
#Bug:ai uses goblin artilery on own creature
|
||||
# http://code.google.com/p/wagic/issues/detail?id=194
|
||||
FORCEABILITY
|
||||
RValues:2
|
||||
AICALLS 10
|
||||
AICALLS 1
|
||||
[INIT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
inplay:,grizzly bears,goblin artillery
|
||||
RValues:2
|
||||
[PLAYER2]
|
||||
inplay:raging goblin
|
||||
[DO]
|
||||
ai
|
||||
ai
|
||||
[ASSERT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
|
||||
24
projects/mtg/bin/Res/test/ai/proliferate_simple.txt
Normal file
24
projects/mtg/bin/Res/test/ai/proliferate_simple.txt
Normal file
@@ -0,0 +1,24 @@
|
||||
FORCEABILITY
|
||||
AICALLS 18
|
||||
[INIT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
life:20
|
||||
# to check that AI does not target itself
|
||||
poisoncount:1
|
||||
inplay:Thrummingbird
|
||||
[PLAYER2]
|
||||
life:20
|
||||
poisoncount:1
|
||||
[DO]
|
||||
ai
|
||||
[ASSERT]
|
||||
COMBATEND
|
||||
[PLAYER1]
|
||||
life:20
|
||||
poisoncount:1
|
||||
inplay:Thrummingbird
|
||||
[PLAYER2]
|
||||
life:19
|
||||
poisoncount:2
|
||||
[END]
|
||||
Reference in New Issue
Block a user