Commit Graph

695 Commits (0bd1e7f9bde1aaae6e6cf39a1091d3bff839d86e)

Author SHA1 Message Date
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 554e3ed51d changed output from mcts6 to mctsd (debug) 2011-06-17 18:48:51 +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 db70d2f77f store game log in .log file 2011-06-17 12:57:09 +08:00
melvin 3ee9a84dcd added mcts6 suffix to output 2011-06-17 12:29:43 +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