Commit Graph

8107 Commits (ea26b7aac255145a9aa373331975aac114b2058e)

Author SHA1 Message Date
melvin 78a54d677a rename groovyCode to requiresGroovy, cardCode to requiresJava 2013-03-30 18:15:20 +08:00
melvin c8df9144cb fix bug where player always discards down to 7 2013-03-30 18:13:31 +08:00
melvin 6f84a5c8ea load card/groovy code when constructing MagicCard 2013-03-30 14:52:54 +08:00
melvin 6d7eb95889 enhanced test by adding cards for AI 2013-03-30 14:50:00 +08:00
melvin 71e7bbdf3b use workqueue to load card specific code and card text 2013-03-30 12:48:01 +08:00
melvin bba3b3d3ad completed Garruk's Packleader by adding groovy code 2013-03-30 11:33:24 +08:00
melvin 785dee0965 Added tag 1.36 for changeset 287d75844166 2013-03-29 22:23:25 +08:00
melvin 75f5d70acc updated cubes 2013-03-29 18:23:13 +08:00
melvin 7a96aa4cbd when using outer object must compare by id 2013-03-29 14:33:45 +08:00
melvin 17b7c53ffd updated README 2013-03-29 14:23:37 +08:00
melvin ee8fe0324f initial draft for 1.36 2013-03-29 11:35:55 +08:00
melvin 13024db2e8 remove triggers, statics and payedCost target from getStateId 2013-03-29 11:35:34 +08:00
melvin 107b280803 should not call destory in a loop using the original list as it modifies the list causing concurrent modification exception 2013-03-29 11:35:04 +08:00
melvin f86c0b9e8e replace conditions with function 2013-03-28 22:14:57 +08:00
melvin eedc0d0301 convert MagicStatic object to a constant 2013-03-28 21:36:40 +08:00
melvin 2053ecf683 include score in MagicCombatCreature's toString 2013-03-28 21:36:01 +08:00
melvin e5d6257329 score not copied causes order of attackers and blockers to be out of sync in cached MCTS node 2013-03-28 21:35:43 +08:00
melvin 8c8bae6b40 show stateId in toString 2013-03-28 14:50:00 +08:00
sponeta fcf4d38b12 added more custom decks 2013-03-28 10:43:38 +08:00
melvin f7eeb94637 use getStateId instead of getId for MagicPermanent 2013-03-27 22:14:20 +08:00
melvin 6f69e6f0e3 move computation of fixedScore to updateScore as it depends on permanent's type 2013-03-26 22:32:58 +08:00
melvin 72a4e6da95 changed hash to handle zero length array like array of single 0 2013-03-26 21:47:00 +08:00
melvin 27244c5918 add all counters to state 2013-03-26 16:58:15 +08:00
melvin 4e8e20e763 always use stateId to initalize rng for random selection 2013-03-26 15:47:13 +08:00
melvin d192ba1afb use shuffle instead of creating rng 2013-03-26 15:38:11 +08:00
melvin 42f4191500 reduce whitespace 2013-03-26 15:37:54 +08:00
melvin 5eef8d992b added more elements to game state id computation 2013-03-26 14:19:28 +08:00
melvin 9369d28b4d remove private clear method, move implementation into constructor 2013-03-26 14:18:59 +08:00
melvin b2ecdf24b0 corrected whitespace 2013-03-25 16:50:08 +08:00
melvin 50b5b4e6be fixed whitespace 2013-03-24 22:25:58 +08:00
melvin acca7a3e89 unify names to getStateId for hash based id, add more items to state id computation 2013-03-24 21:10:00 +08:00
melvin dfc2ea84d2 make ai2 configurable 2013-03-24 20:12:22 +08:00
melvin 0030b436d3 change hard limit to level + 1 seconds 2013-03-24 20:12:07 +08:00
melvin 54f57d642f added MMAB2 for testing how AI changes affects AI performance 2013-03-24 09:59:36 +08:00
melvin 5c64c20260 MagicPayManaCostChoice.hasOptions should take into account current player delayed cost 2013-03-23 22:35:41 +08:00
melvin fe5e6f7b1c limit score to ignore difference between wins and loses, prefer to win early and lose later 2013-03-23 20:00:47 +08:00
melvin 781c07fe2a hasOptions should use hasResults 2013-03-23 18:18:07 +08:00
melvin 456d1a0ec0 added getChosenPlayer to avoid casting, improved card code for Venser to remove casting and branching 2013-03-23 14:30:23 +08:00
melvin 372719b5fd replace cast with getTargetPlayer 2013-03-23 14:24:25 +08:00
melvin 6a489186ff remove choiceResults 2013-03-23 14:07:28 +08:00
melvin 95929801d6 should be clearing choice of copy not the original card on stack 2013-03-23 13:29:45 +08:00
melvin d550210ee7 remove choiceResults from executeEvent 2013-03-23 13:00:53 +08:00
melvin 8faba795dc replace direct access to choiceResults with MagicEvent method 2013-03-23 11:28:20 +08:00
melvin b5a444f073 replace direct access to choiceResults with MagicEvent method 2013-03-23 10:50:55 +08:00
melvin f74e3d822d replace direct access to choiceResults with MagicEvent method 2013-03-23 10:37:42 +08:00
melvin b2160d0472 replace direct access to choiceResults with MagicEvent method 2013-03-23 10:29:09 +08:00
melvin 49b770ae57 replace direct access to choiceResults with MagicEvent method 2013-03-23 10:26:50 +08:00
melvin 158013d661 remove choiceResults from processTarget 2013-03-21 21:35:09 +08:00
melvin 03b97f8252 remove need to specify index of target 2013-03-20 21:42:19 +08:00
melvin 13360093e9 remove need to specify index of target 2013-03-20 21:39:53 +08:00