Commit Graph

871 Commits (887e8d511ed258c278dbbe1deb48714447c7084c)

Author SHA1 Message Date
melvin 887e8d511e added getId 2011-07-01 11:33:00 +08:00
melvin a7b96f922a wrapped long lines 2011-07-01 11:32:42 +08:00
melvin 5e2dcc9c98 wrapped long lines 2011-07-01 11:32:10 +08:00
melvin e2476e37b9 wrapped long lines 2011-07-01 11:31:53 +08:00
melvin 7446cc7a1b added getId 2011-07-01 11:31:14 +08:00
melvin 1bfacb4b4d removed empty lines 2011-07-01 11:30:16 +08:00
melvin 430aa95843 moved getId to MagicMappable 2011-07-01 11:29:52 +08:00
melvin acd114bd6e limit the size of the cache used in ArtificialScoreBoad to 10000 entries by using LinkedHashMap 2011-07-01 10:30:42 +08:00
melvin 1ff2a8f476 removed method sign and add parent as a parmeter to getScore 2011-06-30 21:00:00 +08:00
melvin 745c319c62 changed constant C to 1.0 2011-06-30 17:31:15 +08:00
melvin 18f7813f34 removed recording of length of playouts 2011-06-30 17:30:39 +08:00
melvin f665e31434 removed some empty lines 2011-06-30 13:04:46 +08:00
melvin cce7667277 added MMAB class as a copy of ArtificialWorkerPool to clean up the minimax implementation for possible extensions and improvements 2011-06-30 11:05:24 +08:00
melvin b82c1ac7d8 merged changes to ai script 2011-06-29 16:00:27 +08:00
melvin 3eebc4e483 made ai scoring script an executable 2011-06-29 15:50:27 +08:00
melvin a90b58c4bf removed effect of solved nodes during selection 2011-06-29 15:47:57 +08:00
melvin fcc3e9718b increased maxsim to 10000 to increase chance to catching a synchronization bug, use only 0 or 1 for randomPlay 2011-06-29 12:19:12 +08:00
melvin 63df0a55c1 improved readability 2011-06-29 11:20:01 +08:00
melvin 664638d700 added script to analyze XML description of cards 2011-06-29 11:07:40 +08:00
melvin 36fd945165 added some cubes and rules to download them from the WWW 2011-06-29 11:07:08 +08:00
melvin d9f9fe4e7c added Make rule for daily build upload 2011-06-29 10:05:50 +08:00
melvin c796549ddd added script for automated uploads to google code 2011-06-29 10:01:42 +08:00
melvin 9c9bf47abe changed reward to be in the range [0,1] 2011-06-29 09:39:14 +08:00
melvin df6a3c546a using default UCT for MCTSAI 2011-06-28 16:47:25 +08:00
melvin 75cf57dd91 choices are the root are only generated once, later traversals simply map the choices to the new Game object 2011-06-28 15:13:20 +08:00
melvin f5a65c074e added assert if MagicPermanentSet.getPermanent fails 2011-06-28 15:07:33 +08:00
melvin d7107533b3 added assert 2011-06-28 15:06:14 +08:00
melvin a5346dd068 added assert for preconditions 2011-06-28 15:05:52 +08:00
melvin 0d8735931d simplified logic for MagicCard.map 2011-06-28 15:05:23 +08:00
melvin 2591e0be2b look in all possible places to map card 2011-06-28 15:03:09 +08:00
melvin 76e990aec8 provide multiple methods for computing selection score, separate modification of score due to game theoretic value to a separate method 2011-06-28 14:12:17 +08:00
melvin 6fa49f851f moved node related methods to MCTSGameTree class 2011-06-28 12:10:36 +08:00
melvin 73753fc08d use common code for random discard for AI and player, seed rng with source id + player id 2011-06-28 10:00:14 +08:00
melvin 6cd463b7d0 AI gets MagicPlayChoiceResults while player gets activationSource, for hand get hash of sorted ids as order of hand does not matter 2011-06-28 09:48:41 +08:00
melvin ee34640b06 reverted to using hash for hand, as starting hand is always the same size and this causes the hashes to collide, use the same code to generate valid choices for AI and human for Play choice 2011-06-28 09:25:42 +08:00
melvin f86583f317 ai defaults to MCTS 2011-06-27 17:32:48 +08:00
melvin 7fb54dcb59 changed initial ratio to 10/10, simplified selection score of loss node 2011-06-27 17:18:30 +08:00
melvin 1409f09ec3 changed hash of hand to size as order of hand does not matter 2011-06-27 17:18:05 +08:00
melvin 8929142558 removed card.getId from hash of permanent, changed hash of hand to size as order of hand does not matter 2011-06-27 17:17:49 +08:00
melvin 0bcce845e8 added num.d for games with assert enabled 2011-06-27 17:16:19 +08:00
melvin 66127dbe9f ensure element in object array is not null 2011-06-27 15:15:32 +08:00
melvin dc0368ef60 use Ratio for selection instead of UCT 2011-06-27 14:57:37 +08:00
melvin 95588c2002 increase thickness of highlight to 2 pixels 2011-06-27 14:52:20 +08:00
melvin fba5de83d4 use hashcode for non MagicTarget to compute MagicItemOnStack and MagicEvent hash 2011-06-27 13:37:03 +08:00
melvin 94df9f31f0 removed empty lines 2011-06-27 13:36:14 +08:00
melvin 4f13b672b9 changed value of null from 1 to -1L 2011-06-27 13:35:56 +08:00
melvin fed499169d wrapped long lines 2011-06-27 13:35:32 +08:00
melvin bd5ca1d29e compute the number of steps to win/lose in the solver 2011-06-25 12:35:41 +08:00
melvin 00dfa44911 wrapped some long lines, removed some empty lines 2011-06-25 11:16:54 +08:00
melvin 5a20d6bfc1 experimenting with highlighting valid cards in a different way 2011-06-25 11:01:39 +08:00