Commit Graph

435 Commits (8e413ede6753484ac0badc40e795265981ef1500)

Author SHA1 Message Date
melvin 8e413ede67 moved Spell Pierce to separate class 2011-06-07 16:39:30 +08:00
melvin 65d6aaa77f updated version shown in game to 1.15 2011-06-07 16:22:29 +08:00
melvin 3384c65263 moved Celestial Purge and Sphere of the Suns code to a separate class 2011-06-07 16:21:43 +08:00
melvin 9244c4b46b corrected name of method 2011-06-07 16:21:19 +08:00
melvin c66a7203b8 wrapped long lines 2011-06-07 16:21:00 +08:00
melvin 73edddea64 added setCardDefinition 2011-06-07 16:20:11 +08:00
melvin 620e9f7a13 added setCardDefinition 2011-06-07 16:19:54 +08:00
melvin b4065be8d9 removed Sphere of the Suns' trigger 2011-06-07 16:18:59 +08:00
melvin 9e9d7eb9a8 removed Sphere of the Suns' mana activation 2011-06-07 16:18:41 +08:00
melvin 455c1b548f removed Celestial Purge's spell card event 2011-06-07 16:18:20 +08:00
melvin 7ef31039f4 added code to automatically load card code after loading card definition, class storing companion code must have the same name as the card and stored in magic.data package 2011-06-07 16:17:43 +08:00
melvin 487bd0185d added Celestial Purge 2011-06-07 15:21:58 +08:00
melvin f415c3dcfc updated test 2011-06-07 15:02:39 +08:00
melvin bd528ff2ac added Spell Pierce and Spere of the Suns 2011-06-07 14:53:44 +08:00
melvin 4ab102dce1 added delay to show the stack before automatically passing 2011-06-07 12:44:47 +08:00
melvin 97360b3ec9 removed special cases where game does not skip even though the skip single choice option is on 2011-06-07 12:44:17 +08:00
melvin 102ff9151a illegal idx will generate a null pointer exception instead of array out of bounds, more importantly the possible choices will be printed if logging is enabled 2011-06-07 12:43:37 +08:00
melvin 762a8acf17 updated array_mag.sh and args to use relative paths 2011-06-07 11:19:57 +08:00
melvin 1c7db8d98b use array_mag.sh to generate AI test output 2011-06-07 11:19:30 +08:00
melvin d47b94f85b added some misc awk scripts and a test game 2011-06-07 11:17:51 +08:00
melvin ebb9350305 added symbols by GoblinHero, converted to png 2011-06-07 10:52:12 +08:00
melvin 4eae9a30cc handle choice being null, MAXTIME is ArtificialLevel seconds 2011-06-07 10:32:35 +08:00
melvin 2323cdbedc if artificial choice is empty, getSimulationResultChoice returns null 2011-06-07 10:31:51 +08:00
melvin 7b2606e6c9 added logging for generating options to MagicEvent to detect bottlenecks 2011-06-07 10:16:09 +08:00
melvin af73111b59 MagicDeclareBlcokersChoice override getSimulationChoiceResult and randomly creates a block without enumerating possible blocks 2011-06-07 10:15:34 +08:00
melvin 157ef4c2a8 rewrite to use getSimulationChoiceResults during simulations 2011-06-07 09:53:35 +08:00
melvin 7844861cc2 default implementation of getSimulationChoiceResults is to generate all artifical choice results and randomly choose one, specific choice class should provide more efficient implmentations that does not need to generate all choices 2011-06-07 09:53:06 +08:00
melvin 568b81049a added method getSimulationChoiceResults to facilitate simulations 2011-06-07 09:52:06 +08:00
melvin bd5fa03e87 changed maxV's type to int 2011-06-06 17:36:16 +08:00
melvin 28127b6f37 changed formula for reward 2011-06-06 17:05:09 +08:00
melvin c5c5b575b3 makes use of symbols drawn by Goblin Hero if available 2011-06-06 16:13:52 +08:00
melvin cf38f7fba7 getTypeFlags can be cached 2011-06-06 16:13:15 +08:00
melvin 7665bbde08 added logging of length of each simulation 2011-06-06 12:29:44 +08:00
melvin 1234b246eb print card statistics to stderr 2011-06-06 11:10:51 +08:00
melvin 503a5201d5 changed log/debugging messages to use stderr instead of stdout 2011-06-06 10:45:45 +08:00
melvin e62a17bc2b load triggers using reflection 2011-06-06 10:45:04 +08:00
melvin e1297b7c96 load permanent activations using reflection 2011-06-06 10:44:48 +08:00
melvin 11fbb8c3a4 load CardEventDefinitions using reflection instead of explicitly listing out the objects 2011-06-06 10:44:29 +08:00
melvin e351a212dc added condition that for pass priority can only activate on your own turn 2011-06-06 10:13:17 +08:00
melvin e181db86a4 merged changes 2011-06-06 10:11:26 +08:00
melvin 9fc85872c8 added args 2011-06-06 10:05:20 +08:00
melvin 5c62adf148 if stack is not empty, give one second for player to notice that is happening 2011-06-04 17:40:05 +08:00
melvin 543f5bff7e use setter instead of directly changing member variable 2011-06-04 17:39:39 +08:00
melvin f7054c757b merged changes to array_mag.sh 2011-06-04 17:09:07 +08:00
melvin 87bcbc7309 added more test games 2011-06-04 17:08:22 +08:00
melvin addbd56de3 commented out SGE_TASK_ID and removed echo 2011-06-04 16:58:53 +08:00
melvin ef77506140 added seed to AI evaluation to improve repeatability and allow us to find bugs 2011-06-04 16:58:06 +08:00
melvin e37e1ae44c cleaned up the code 2011-06-04 16:55:01 +08:00
melvin c09a25de02 automatically pass if stack is empty and pass priority is true 2011-06-04 16:54:32 +08:00
melvin 47363e56d2 ignore stack when deciding whether can skip, reset pass priority during Untap phase 2011-06-04 16:53:19 +08:00