Commit Graph

695 Commits (0bd1e7f9bde1aaae6e6cf39a1091d3bff839d86e)

Author SHA1 Message Date
melvin 1237cb1fc9 fixed case where hasChoice but choices has size 0, this should not happen in normal situations 2011-06-10 18:11:33 +08:00
melvin 0c97ecb33c added empty option to case when hand is empty, so that list of choices has size 1 2011-06-10 18:09:07 +08:00
melvin 050c98d85c removed some empty lines 2011-06-10 18:08:16 +08:00
melvin 59833bc889 deal with no artifical choice by doing game.executeNextEvent 2011-06-10 17:13:26 +08:00
melvin 992b4885d7 disable caching of game state 2011-06-10 16:31:35 +08:00
melvin 8e911a9c0f changed C to 1.0, MAXEVENTS to 1000 2011-06-10 15:24:40 +08:00
melvin 340d6685eb get list of spells and lands each time generate deck is called 2011-06-10 15:23:47 +08:00
melvin 4672315a9a only create one deck generator object 2011-06-10 15:23:20 +08:00
melvin 0362c826f5 changed getRank to UCT, moved it back into MCTSAI, increased MAXEVENTS to 1000 2011-06-10 14:28:47 +08:00
melvin c16254c12c move calculation of rank into class MCTSGameTree 2011-06-10 14:23:20 +08:00
melvin 9c22347e24 evaluate only MCTS AI 2011-06-10 14:11:45 +08:00
melvin 627196b2c1 added USE_CACHE variable to determine whether to use the cache 2011-06-10 14:09:02 +08:00
melvin bbc02bd315 remove illegal nodes before selecting best node 2011-06-10 13:36:56 +08:00
melvin 0c945d8fb7 use a separate pass to remove invalid nodes 2011-06-10 13:31:42 +08:00
melvin be5f734842 remove invalid node from game tree 2011-06-10 13:15:48 +08:00
melvin a42e0e4511 disable pass priority for now as the logic is too complex 2011-06-10 12:04:50 +08:00
melvin ce593caadf cleaned up code to compute playerId 2011-06-10 12:04:24 +08:00
melvin 5b7308f8b8 clean up code to compute gameid 2011-06-10 12:03:45 +08:00
melvin a67d5abb4f added LRU cache to keep track of recently added nodes 2011-06-10 12:03:27 +08:00
melvin 0b7864b82d added rule to generate all cubes 2011-06-10 10:09:19 +08:00
melvin 31620ef2cf sorted legacy_cube 2011-06-10 10:09:03 +08:00
melvin 338cc53aa5 added list of implemented cards 2011-06-10 10:02:40 +08:00
melvin 58eac1d69a added new cubes to mods 2011-06-10 10:02:07 +08:00
melvin 799422e853 added card list for legacy, extended and standard 2011-06-10 10:01:13 +08:00
melvin 80eee0f87c moved data files related to cards to cards folder 2011-06-10 10:00:24 +08:00
User@User-PC bbcd9c5700 Replaced the texture for spirit token card to expected. (Users will need to delete the spirit.jpg in the token folder and redownload ). Fixed Issue #27. 2011-06-09 17:43:23 +08:00
melvin 41143103aa added rules to generate standard and extended cube 2011-06-09 16:23:52 +08:00
melvin f7686df82b give up if cannot find enough non basic lands 2011-06-09 16:23:28 +08:00
melvin 6f690b2c5b create a new deck generator for each player 2011-06-09 16:22:10 +08:00
melvin 9641619830 default is the all cube 2011-06-09 14:54:32 +08:00
melvin ef6ad4f4c9 remove cube property from cards, define these in separate cube files 2011-06-09 14:53:01 +08:00
melvin cd3df78880 added companion class for Nature's Claim and test game 2011-06-09 14:27:17 +08:00
melvin c76e4303a9 added Nature's Claim 2011-06-09 14:25:33 +08:00
User@User-PC e464c5b26e Changed the thread sleep timer to a lower value. 2011-06-09 13:47:49 +08:00
User@User-PC eac250532c added downloadProgressLabel for display, and enable users to cancel the download. 2011-06-09 13:30:26 +08:00
melvin 01d2d3d878 remove owner variable, use card.getOwner() instead 2011-06-08 12:10:28 +08:00
melvin d9c6e6bfa0 show ERROR! on error 2011-06-08 11:52:48 +08:00
melvin 27d96b63fa always add ERROR! to log messages representing impossible situations 2011-06-08 11:47:26 +08:00
melvin 4e7bf2a397 added Kor Firewalker 2011-06-08 11:46:49 +08:00
melvin 9c711ad92c added Explore 2011-06-08 11:30:35 +08:00
melvin 4781092137 changed landPlayed to int to implement Explore 2011-06-08 11:28:59 +08:00
melvin 5429f4064b initialize best choice to first child of root 2011-06-08 10:54:04 +08:00
melvin 95e7412c32 removed some empty lines 2011-06-08 10:53:24 +08:00
melvin 1c53425f31 removed some empty lines 2011-06-08 10:53:09 +08:00
melvin 44ea2aabf7 added MCTSNC, non cheating version of MCTS 2011-06-07 20:57:29 +08:00
melvin 07a97a779b added companion class and test game for Mark of Mutiny 2011-06-07 19:26:52 +08:00
melvin bfd882cb4e added Mark of Mutiny 2011-06-07 19:25:05 +08:00
melvin 7d5082249f added owner to permanents and check for return to owner at end of turn 2011-06-07 19:20:28 +08:00
melvin c7e7d3b58f added Mox Opal, Negate, and Signal Pest 2011-06-07 18:27:43 +08:00
melvin 8db9bd012b added Mythic Rare as one of the rarities 2011-06-07 18:27:09 +08:00