Commit Graph

880 Commits (f349e9bea9bf0360dba18ba33c7f73780e550adc)

Author SHA1 Message Date
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 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 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 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 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
melvin 1c39ebd78e removed empty lines 2011-06-25 10:49:51 +08:00
melvin 6cb37433cb removed empty lines 2011-06-25 10:49:33 +08:00
melvin cbe5da78da removed empty lines 2011-06-25 10:49:16 +08:00
melvin 2f108b78bd use List<MagicManaType> instead of MagicManaType[] 2011-06-24 12:49:05 +08:00
melvin d444acc9e3 converted rarity to an enum 2011-06-24 12:08:53 +08:00
melvin 553770b8e1 make all members in MagicStaticLocalVariable private, added canLose and canTarget method 2011-06-24 12:08:16 +08:00
melvin cbb75728d8 removed extra semi colon 2011-06-24 12:07:45 +08:00
melvin b4b0aaa73a use equals to compare strings 2011-06-24 11:31:30 +08:00
melvin db5ee83239 make sure file streams are closed by finally blocks 2011-06-24 11:31:05 +08:00
melvin 3423d67e9c make sure file streams are closed by finally blocks 2011-06-24 11:30:40 +08:00
melvin d00be62f84 made class final 2011-06-24 11:30:11 +08:00
melvin 45fe662696 make sure MAX_TEST_MODE_DURATION is synchronized 2011-06-24 11:29:54 +08:00
melvin ec80ee7fba make class final 2011-06-24 11:29:37 +08:00
melvin ab316b246f arrays to list 2011-06-24 11:29:22 +08:00
melvin be4e262d2e converted arrays to immutable list 2011-06-24 11:29:10 +08:00
melvin c8d2b67b5e make sure CHEAT is synchronized 2011-06-24 11:28:57 +08:00
melvin 27ccec8657 made capitalization of error messages more consistent 2011-06-24 10:46:35 +08:00
melvin b2162ce6fe fixed some problems indicated by findbugs 2011-06-24 10:42:42 +08:00
melvin db8b05cec4 switched from using JDK's Random class to MersenneTwisterFast 2011-06-24 10:02:23 +08:00
melvin 631678e661 added test case and MagicChangeCardDefinition 2011-06-23 16:34:09 +08:00
melvin 897953945d added Mutavault 2011-06-23 16:33:01 +08:00
melvin c60bbae7e5 removed some empty lines 2011-06-23 16:32:36 +08:00
melvin 807e9210e1 Added WARNING to messages indicating that computation of possible choices is taking too long 2011-06-23 13:03:06 +08:00
melvin e0b273ffe2 increases maximum duration of AI only game to 30 mins 2011-06-22 09:48:47 +08:00
melvin 43e9d10d0c removed extinct creature type Lord 2011-06-21 17:16:11 +08:00
melvin 0d0d83b79b convert int flags for MagicSubType to EnumSet 2011-06-21 17:04:08 +08:00
melvin 45c206fdca random choice for Declare Blockers return immediately if none of the defending creatures can block 2011-06-21 15:50:13 +08:00
melvin a714778fd8 use fact choices during simulations 2011-06-21 15:36:52 +08:00
melvin d72478afec increase pause to 1.5s,, only skip single choice except if AI blocks 2011-06-21 14:29:35 +08:00
melvin 62b89cdaff print log message for cache when assertions are enabled 2011-06-21 11:46:20 +08:00
melvin c36f98d7d2 improved comments 2011-06-21 11:15:07 +08:00
melvin 5254d63096 added pause if AI blocks 2011-06-21 10:54:59 +08:00
melvin 7b9bc74b41 show new missing card image 2011-06-21 10:27:14 +08:00
melvin ab9a434791 added new image for missing card 2011-06-21 09:58:22 +08:00
melvin 78c08d2f73 moved logbook button and text view button to just below the opponent viewer to get rid of the dead space between them 2011-06-21 09:40:28 +08:00
melvin a9da8c67e6 wrapped long lines 2011-06-21 09:34:25 +08:00
melvin 93146fafd7 simplified logic for skipping priority 2011-06-20 17:24:20 +08:00
melvin b7b1cc1658 set readme file dialog to start at the top, added cubes to release rule 2011-06-20 15:34:15 +08:00
melvin a845cadc86 removed checksum and do not store strings in MCTSGameTree node 2011-06-20 14:24:44 +08:00
melvin 60e2c47f0d set ASSERT in constructor 2011-06-20 14:17:03 +08:00
melvin 4884508485 comment out logging of cache 2011-06-20 13:51:38 +08:00
melvin 394f68bede refined game flow by adjusting situations where game with automatically pass, added test case for game flow 2011-06-20 12:49:52 +08:00
melvin f39f6dad01 make sure player.getId returns a large number of avoid clashing with id of permanents 2011-06-20 12:18:50 +08:00
melvin d2048e0ee0 changed some methods to non-static so that it can access log method 2011-06-20 11:28:55 +08:00
melvin e75d8fc789 game.getIdString starts of with toString of game 2011-06-20 10:58:27 +08:00
melvin 640d3b9adc use first 3 elements in data (MagicEvent) and choiceResults (MagicItemOnStack) to compute hash 2011-06-20 10:55:51 +08:00
melvin f7a4d19c6f combined two asserts, moved condition to check in checkNode 2011-06-20 10:42:00 +08:00
melvin 454744e44d documented which members of MagicGame is clones 2011-06-20 10:09:50 +08:00
melvin e4e18b1f02 priorityPassedCount not copied when Game is cloned! Fixed 2011-06-19 23:10:02 +08:00
melvin 3f7a696e23 changed long constants to represent booleans in gameId 2011-06-19 22:19:01 +08:00
melvin 168dd68b07 added toString to game and print it out when assert fails 2011-06-19 21:54:58 +08:00
melvin d1ff534860 removed empty lines, add space around operators 2011-06-19 21:04:57 +08:00
melvin d669036b88 replace catch Error with catch Throwable 2011-06-19 18:36:16 +08:00
melvin 53593bbfab catch all errors when loading player avatar 2011-06-19 18:33:26 +08:00
melvin e21c455f61 catch all possible exceptions/errors in IconImages and issue warning 2011-06-19 18:27:53 +08:00
melvin 7258245a24 id of stack item is event id + result of target picker 2011-06-19 17:59:17 +08:00
melvin e5ca788b68 wrapped long lines 2011-06-19 17:52:32 +08:00
melvin 91a556386a check that data has at least one element 2011-06-19 17:30:53 +08:00
melvin ed2eb1c8da added getId to MagicTarget, return event id of items on stack 2011-06-19 17:25:09 +08:00
melvin 66fa60320e removed empty lines 2011-06-19 17:24:00 +08:00
melvin eb9e4886e2 clean up number of attackers and blockers during player cleanup action 2011-06-19 15:45:14 +08:00
melvin 51ae0f5254 take care of nulls when computing event id 2011-06-19 15:33:38 +08:00
melvin 808f3ce7c2 changed from stack.size and events.size to stack.getItemsId and events.getEventsId to compute game state hash 2011-06-19 15:28:58 +08:00
melvin eaafcec715 use id instead of using permanantid 2011-06-19 15:28:09 +08:00
melvin 18029e332a added long getId 2011-06-19 15:27:45 +08:00
melvin 97cbecc76b removed empty lines 2011-06-19 15:27:32 +08:00
melvin 3956d8809b event id is source id + action 2011-06-19 15:27:17 +08:00
melvin b0b9a93626 removed empty lines add space between operators 2011-06-19 14:30:48 +08:00
melvin e45355cc21 print path for each node added 2011-06-19 14:02:06 +08:00
melvin 1c11b18551 wrapped long lines 2011-06-19 13:56:02 +08:00
melvin 0f10d28097 modified some of the textual representation of permanent state 2011-06-19 13:55:29 +08:00
melvin e2d91dc759 added textual representation of some states 2011-06-19 13:53:03 +08:00
melvin 23576ba7e7 removed empty lines 2011-06-19 13:52:38 +08:00
melvin 57dab87db6 removed empty line 2011-06-19 13:52:24 +08:00
melvin c6c30879bb removed empty lines 2011-06-19 13:52:00 +08:00
melvin 4b31a58904 wrapped long lines and added text for activation 2011-06-19 11:02:56 +08:00
melvin 47c9d72a91 removed empty lines 2011-06-19 11:02:36 +08:00
melvin c17cbaae32 added suppress warnings fallthrough 2011-06-19 11:02:06 +08:00
melvin d8023d56fa changed max test game time exceeded from ERROR! to WARNING. 2011-06-19 11:01:46 +08:00
melvin 180b7de4c5 moved checkNode to start of the loop 2011-06-18 23:55:38 +08:00
melvin 1156f07d65 moved print statements in check node to message in assert 2011-06-18 23:48:17 +08:00
melvin 742fd54723 added function to print path leading to corrupt node 2011-06-18 23:43:13 +08:00
melvin 6346a9d256 added damage, prevent damage to hash 2011-06-18 23:42:41 +08:00
melvin bebad326e4 wrapped long lines 2011-06-18 23:41:38 +08:00
melvin 94ef57eb03 removed some empty lines 2011-06-18 23:41:22 +08:00
melvin 1e62a3b03e removed some empty lines 2011-06-18 23:41:06 +08:00
melvin cfbc3b4c90 wrapped long lines, added text to activation 2011-06-18 21:07:50 +08:00
melvin 5dfebc6584 added more text to activations 2011-06-18 17:05:21 +08:00
melvin 757f3e827c wrapped long lines 2011-06-18 17:05:09 +08:00
melvin 24411d13c7 removed empty lines 2011-06-18 17:04:55 +08:00
melvin 00552f31df added Frog 2011-06-18 17:04:38 +08:00
melvin 9c995c9af0 wrapped long lines 2011-06-18 17:04:25 +08:00
melvin b9fdc7afc6 added text Pump 2011-06-18 17:04:10 +08:00
melvin 247b944249 added more text for activations 2011-06-18 12:20:44 +08:00
melvin 7125ed3c7b added import for trigger and condition 2011-06-18 12:11:45 +08:00
melvin 778db5fe14 added text to some activations 2011-06-18 12:11:15 +08:00
melvin db35b1091d add hook to load magic permanent activation from companion class 2011-06-18 12:11:01 +08:00
melvin 1f6e8fc320 removed Batterskull 2011-06-18 12:10:42 +08:00
melvin 2fe2cb18a1 Added getText 2011-06-18 12:10:29 +08:00
melvin 2eba1c94f4 stored index, added setCardDefinition 2011-06-18 12:09:44 +08:00
melvin cbbfa2d1d8 added text Play 2011-06-18 12:09:22 +08:00
melvin 4614877d2c added comment 2011-06-18 12:09:08 +08:00
melvin 113b61da8b added constructors that take in text 2011-06-18 12:06:53 +08:00
melvin af66e59bc9 added text for equip 2011-06-18 12:06:16 +08:00
melvin 8dcc4dc2f4 added text for regen 2011-06-18 12:05:56 +08:00
melvin 177e7bb2b8 added a no args constructor 2011-06-18 12:05:38 +08:00
melvin e95cbc1acc removed some empty lines 2011-06-18 12:05:21 +08:00
melvin a2e19aa122 choice of activation determined from activation.getText 2011-06-18 12:05:06 +08:00
melvin 0bd1e7f9bd added Batterskull class 2011-06-18 12:04:40 +08:00
melvin 6332a21f58 added library size to playerid hash 2011-06-18 10:59:54 +08:00
melvin 9e5a95183e print debug output when adding nodes to cache 2011-06-18 10:59:05 +08:00
melvin 5d3c78106c wrapped long lines, reduce nestedness of logic 2011-06-18 10:54:20 +08:00
melvin 8d3025482e wrapped long lines 2011-06-18 09:57:21 +08:00
melvin 9c1050c609 added some space around operators 2011-06-17 18:31:10 +08:00
melvin 8aeca55c28 removed some empty lines 2011-06-17 18:30:41 +08:00
melvin 719d7ba84f in debug mode ignore strength, each round run exactly 500 simulations 2011-06-17 18:16:53 +08:00
melvin dbdf62fc0c reset score to zero each time so that it does not accumulate, accumulation of score may affect some of the choices, especially blocking 2011-06-17 16:35:17 +08:00
melvin 1fdf27634c check number of exlcude perms instead of num options which might overflow 2011-06-17 16:25:52 +08:00
melvin cd383c7ec8 updated to use the new copy constructor instead of copy method 2011-06-17 15:17:33 +08:00
melvin fa5c7ebf4d rearranged copy constructor, added event and stack size to hash 2011-06-17 14:55:56 +08:00
melvin fd3eae3cbc changed copy method to constructor 2011-06-17 14:55:09 +08:00
melvin 6dbd2a8211 removed some empty lines 2011-06-17 14:54:52 +08:00
melvin 673a18cd10 removes some empty lines 2011-06-17 14:54:34 +08:00
melvin ac53056117 improve readability 2011-06-17 14:54:20 +08:00
melvin 055e2a7b80 improve readability 2011-06-17 14:53:48 +08:00
melvin 4b82e7e489 wrapped long lines 2011-06-17 14:18:00 +08:00
melvin eb6ecf3cee adjusted whitespace 2011-06-17 14:04:08 +08:00
melvin 155dfaafa0 wrapped long lines 2011-06-17 14:02:32 +08:00
melvin 4218ff75d4 removed some empty lines 2011-06-17 13:59:06 +08:00
melvin 3d012964c9 commented out println 2011-06-17 13:53:48 +08:00
melvin 3acf3bbcb3 cleaned up logic 2011-06-17 13:53:36 +08:00
melvin 985394457a increased MAX_ACTIONS to 10000, commented out debug output when adding nodes to cache 2011-06-17 13:11:46 +08:00
melvin 14aedc0b38 added additional factors to include in hash 2011-06-17 13:10:36 +08:00
melvin 21fcb13cba count number of actions performed instead of number of events, more fine grained 2011-06-17 11:48:15 +08:00
melvin 9dbc723f7a remove events executed, count number of actions performed instead, made printing of idstring dynamic instead of hardcoded, added factors stored in MagicMarkerAction 2011-06-17 11:47:27 +08:00
melvin 26d9fc1c5a made all members in MagicActivationPriority private and added getters and setters 2011-06-17 11:45:11 +08:00
melvin edefb578e5 activation priority is copied when MagicPlayer is copies and used for computing the hash 2011-06-17 11:44:21 +08:00
melvin 6d099a9867 removed some empty lines 2011-06-17 11:43:33 +08:00
melvin 5a3bcb81ad increament activationId using a method call instead of doing it directly 2011-06-17 11:09:51 +08:00
melvin be196aaae1 set MagicGames created for AI testing to artifical 2011-06-17 10:37:45 +08:00
melvin efe5f69e11 fixed comments 2011-06-17 10:37:11 +08:00
melvin 37e8f123e1 removed some empty lines 2011-06-17 10:36:56 +08:00
melvin 17f43a00e6 restored getPlayerId(id) and simplified getPlayerId 2011-06-17 10:36:34 +08:00
melvin 36914fb564 added setArtificial to MagicGame 2011-06-17 10:36:03 +08:00
melvin 55af4dfb0c removed index added builderCost.getMinimumAmount to player hash 2011-06-16 21:51:29 +08:00
melvin b6801b39d0 make sure both players are set to artifical in test game 2011-06-16 21:46:22 +08:00
melvin fd5ee781dc removes some empty lines, wrapped some long lines 2011-06-16 21:37:34 +08:00
melvin 83771f31a5 remove hardcoded index in enums, use ordinal instead 2011-06-16 21:34:47 +08:00
melvin fa1f2ae0a4 replace getIndex with ordinal 2011-06-16 21:10:13 +08:00
melvin 4bd2f7579f use ordinal instead of hashcode for phase and step, print name instead of hashcode for idstring 2011-06-16 21:09:48 +08:00
melvin 0eb3b14dc7 removed println 2011-06-16 21:00:12 +08:00
melvin 7716b4d558 simplfied enum 2011-06-16 20:58:28 +08:00
melvin 3dcca6cb1f removed some empty lines 2011-06-16 20:51:09 +08:00
melvin 89a8698438 simplified getIndex 2011-06-16 20:50:14 +08:00
melvin ce1a28bcc8 removed some empty lines 2011-06-16 20:49:49 +08:00
melvin f41222f1ae removed some empty lines 2011-06-16 20:49:33 +08:00
melvin 6e860693bc simplified isMain and getIndex 2011-06-16 20:49:14 +08:00
melvin 976e66abb9 moved comments to before the enum 2011-06-16 20:48:53 +08:00
melvin ea0703f5cb removed some empty lines 2011-06-16 20:48:28 +08:00
melvin 9711281fc4 enabled checkNode 2011-06-16 17:41:39 +08:00
melvin e80a9324c1 removed score from toString 2011-06-16 17:41:27 +08:00
melvin 31269d9179 changed debug message 2011-06-16 17:25:01 +08:00
melvin 903697dceb removed owner and controller from hash 2011-06-16 17:20:03 +08:00
melvin 8d4e5a904a removed eventsExecuted from gameId 2011-06-16 17:07:07 +08:00
melvin 6a7ec7c723 removed some empty lines 2011-06-16 17:06:30 +08:00
melvin edd978e064 wrapped long lines, added player index to MagicEvent.toString 2011-06-16 17:06:15 +08:00
melvin 8c29a18188 Added MMABC, the version of MMAB that can see all cards 2011-06-16 15:44:07 +08:00
melvin 310eabfe60 print path leading to node 2011-06-16 15:12:14 +08:00
melvin 19bbebc3c1 updated getGameId 2011-06-16 15:11:24 +08:00
melvin 320ea58050 added controller and owner index to hash input 2011-06-16 15:09:33 +08:00
melvin 72217fc41e store input to hash in keys member variable for printing with getPlayerIdString 2011-06-16 15:09:14 +08:00
melvin 5fa3e87435 during simulation use delayed pay mana cost 2011-06-16 15:07:52 +08:00
melvin de0bc86c46 changed exception to assertion 2011-06-16 15:06:58 +08:00
melvin f2a13d507c removed some empty lines 2011-06-16 15:06:00 +08:00
melvin 2f27745ddc removed some empty lines 2011-06-16 15:05:35 +08:00
melvin 1af033ca60 combined log ouput, added isCached to each node to avoid compute gameId and checking the cache 2011-06-16 12:17:26 +08:00
melvin d49c4134a8 wrapped long lines, added more whitespace to expression 2011-06-16 12:16:41 +08:00
melvin 3db5554d93 renamed passPriority to skipTurn, removed some empty lines and changed System.exit to asserts 2011-06-16 12:15:47 +08:00
melvin 6009782b2b added card.getId to input to hash 2011-06-16 12:14:46 +08:00
melvin 731db6c8bb switch from using multiplicative hashing function to Murmur3 2011-06-16 12:14:23 +08:00
melvin 485d210375 array of long created during getPlayerId is stored in object and used to generate the getIdString dynamically 2011-06-16 12:13:30 +08:00
melvin e9bf7bf02a renamed setPassPriority to setSkipTurn 2011-06-16 12:12:44 +08:00
melvin 1d53f3a43c correct some comments 2011-06-15 16:16:41 +08:00
melvin e7c9317174 make sure a node is only cached one, to reduce the number of times we need to compute the hash 2011-06-15 15:59:27 +08:00
melvin 4a85152b07 removed some empty lines 2011-06-15 15:58:11 +08:00
melvin 3c29bd0118 split gameIdString over multple lines 2011-06-15 15:57:35 +08:00
melvin 34735c53ef show both simulations carried forward and actual number of simulations ran 2011-06-15 12:52:28 +08:00
melvin 47c69170e3 Added MurmurHash3 algorithm 2011-06-15 12:49:42 +08:00
melvin dfbba50c07 removed some empty lines 2011-06-15 12:49:03 +08:00
melvin 434af01cbf replaced description with ... as it shows up during interactive play 2011-06-15 12:48:34 +08:00
melvin 7f059712a8 added getEventId 2011-06-15 12:48:03 +08:00
melvin 1373f62063 use murmur hash algorithm to compute permanent id 2011-06-15 12:47:33 +08:00
melvin fc003bef08 use Murmur Hash algorithm to compute permanents id 2011-06-15 12:47:15 +08:00
melvin bbd52788d7 use Murmur Hash algorithm to compute gameId 2011-06-15 12:46:44 +08:00
melvin f9557711c0 use MurmurHash algorithm to compute playerId 2011-06-15 12:46:25 +08:00
melvin 5b0d84b4af added getEventsId 2011-06-15 12:45:51 +08:00
melvin 15e07e3587 added getItemsId 2011-06-15 12:45:24 +08:00
melvin 4dfff7e4ce store string of choices in parent for debugging 2011-06-15 11:23:22 +08:00
melvin 52bfd1bae7 use hashcode for phase as it is a singleton, no args verion of getGameId calls no args version of getPlayerId 2011-06-15 11:22:12 +08:00
melvin 3c3cf9e1b6 added getPlayerId(), no args version for MCTSAI caching 2011-06-15 11:21:25 +08:00
melvin 0e14a8908f print message to stderr if max time exceeded 2011-06-15 11:20:49 +08:00
melvin f7678111cb Added more asserts to catch problems early 2011-06-15 10:40:21 +08:00
melvin 44e2be8165 merged changes by Rachel :D 2011-06-15 10:01:38 +08:00
melvin bbc514a606 enabled caching again, needs more testing 2011-06-15 09:59:08 +08:00
Rachel 78f078486f Removed unneccessary imports. 2011-06-15 08:32:43 +08:00
bloodyangel.rachel@gmail.com a3711fff0a Dialog for README 2011-06-14 21:19:41 +08:00
bloodyangel.rachel@gmail.com 749a4f3048 To retrieve README.txt input 2011-06-14 21:14:29 +08:00
User@User-PC a738c948fa To retrieve README.txt input 2011-06-14 21:08:41 +08:00
melvin 96673c26be include the step, use hashCode instead of getIndex 2011-06-14 19:04:48 +08:00
melvin 04ec11c876 include more factors when computing permanent id 2011-06-14 18:08:34 +08:00
melvin b1654dbfda changed ID_FACTOR to 31, update getIdString 2011-06-14 17:35:15 +08:00
melvin 947eccf6ce change ID_FACTOR to 31 2011-06-14 17:34:57 +08:00
melvin 121919dafc get id return long 2011-06-14 17:34:36 +08:00