Commit Graph

386 Commits (master)

Author SHA1 Message Date
melvin 28127b6f37 changed formula for reward 2011-06-06 17:05:09 +08:00
melvin 7665bbde08 added logging of length of each simulation 2011-06-06 12:29:44 +08:00
melvin 503a5201d5 changed log/debugging messages to use stderr instead of stdout 2011-06-06 10:45:45 +08:00
melvin 4b1fc68412 use MagicRandom to seed the new Random objects for each worker 2011-06-04 16:51:33 +08:00
melvin bd53f4bacf only getArtificalChoiceResults once 2011-06-04 16:50:52 +08:00
melvin a35d78e3cd removed RND from supported AI because it does not make sense to play against a random opponent 2011-06-03 09:59:03 +08:00
melvin d6fef13896 removed default from list of supported ais so it does not appear in the UI 2011-06-03 09:58:22 +08:00
melvin cf536670af MagicRandom now uses seed defined by system property rndSeed if it is given, refactor other programs to use MagicRandom instead of creating their own rng 2011-05-27 15:36:29 +08:00
melvin 012b665b11 fixed some synchronization bugs found by findbugs 2011-05-26 17:16:51 +08:00
melvin 80eb0b3862 added debug version of MCTS called MCTSD 2011-05-23 10:17:07 +08:00
melvin f02252c4a8 removed annotation to suppress warnings when unused 2011-05-23 10:03:11 +08:00
ubeefx eb7cfc4eb4 Vegas AI. 2011-04-10 17:05:51 +00:00
ubeefx 570ed62f81 Improved scoring for equip. 2011-04-10 17:05:22 +00:00
melvinzhang@gmail.com f2a78100b2 reduced exploration and increased exploitation in MCTS AI 2011-04-10 14:35:57 +00:00
melvinzhang@gmail.com 74ad26153b added MCTS to list of supported AIs 2011-04-10 09:45:11 +00:00
melvinzhang@gmail.com f65fe29faf MCTS now can play games with hidden cards by making use of the number of main phases in the random simulation (prefer to win in fewer turns and lose in many turns) 2011-04-10 09:44:39 +00:00
ubeefx 2cfee094c6 Added selection of AI in preferences. 2011-04-09 10:06:08 +00:00
ubeefx 555d836493 Improved setting of known cards for AI. 2011-04-09 08:43:39 +00:00
melvinzhang@gmail.com 350fb91456 made logging configurable via the constructor, default constructor sets logging to false 2011-04-09 03:05:09 +00:00
melvinzhang@gmail.com 4ee43f37f5 treats the situation where the size of the list of choices is zero as a draw, previously tried to continue the game but gets stuck in a infinite loop 2011-04-09 03:00:06 +00:00
melvinzhang@gmail.com 27b5e62d6d accidentally commited version of MagicAIImpl used for testing MCTS, it sets MCTS as the default. Fixed by setting Minimax AI back to being the default 2011-04-09 01:49:56 +00:00
melvinzhang@gmail.com 3aeb7070f8 MCTS now works but it cheats by using the MagicGame constructor that allows it to see all the cards 2011-04-09 01:47:53 +00:00
melvinzhang@gmail.com 3df275480b refactored getNextMultiChoiceEvent to be flatter, reduce nestedness of statements, added condition to terminate AI when MAXTIME or MAXSIM is reached, store game.getScore in MCTSGameTree (not used at the moment) 2011-04-08 06:44:28 +00:00
ubeefx c0f00d6e86 Added card Lightning Greaves. 2011-04-07 20:30:31 +00:00
melvinzhang@gmail.com 11f29b3335 MCTSGameTree now implements iterable, so that we can use for each loop to go over all the children of a node, changed assert format 2011-04-07 09:19:23 +00:00
melvinzhang@gmail.com ee8282e4f7 added some asserts to help debug MCTS 2011-04-07 04:31:41 +00:00
melvinzhang@gmail.com ddf9b0559f fixed crash in MCTS, randomPlay still bugged (almost always returns that scorePlayer wins 2011-04-06 05:27:39 +00:00
ubeefx 1133f98b59 Small changes. 2011-04-05 17:21:32 +00:00
melvinzhang@gmail.com 5e45c342ad MCTS code now uncommented and can be tested, before this MCTS was making random moves 2011-04-05 03:31:42 +00:00
ubeefx e3e6a40176 Increased version to 1.11.
Replaced some card images.
AI code review and formatting.
2011-04-04 17:22:52 +00:00
melvinzhang@gmail.com 76281e3fc0 added initial attempt at implementing a Monte Carlo Tree Search AI, runs but still have bugs to be ironed out, can be selected from the command line as MCTS 2011-04-04 03:07:36 +00:00
melvinzhang@gmail.com e0e280783c AIs stored in MagicTournament, GameController gets the array of AIs from MagicTournament and invokes the appropriate one based on the player's index 2011-04-04 03:01:13 +00:00
ubeefx 57b6bb3e90 Support for infect keyword and poison counters.
6 infect creature cards.
2011-03-20 21:45:42 +00:00
ubeefx 38366a07e1 Configurable number of games and level for deck strength. 2010-12-23 15:20:39 +00:00
ubeefx b28d1895f7 Added support for milling and level up.
Added Student of Warfare, Sword of Body and Mind and Szadek, Lord of Secrets.
2010-12-15 23:29:27 +00:00
ubeefx 7fd13965b2 Initial version. 2010-11-21 18:54:59 +00:00