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 |
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
|
5c35bf9390
|
make script more generic, data for cards must come from filename that contains
the word data
|
2011-06-24 15:29:40 +08:00 |
melvin
|
d82c81ad25
|
added rules to download cubes from the web
|
2011-06-24 15:01:27 +08:00 |
melvin
|
9379f9a891
|
updated README
|
2011-06-24 13:02:17 +08:00 |
melvin
|
428c0f4487
|
added ubeefx cube
|
2011-06-24 12:58:14 +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
|
7b18846c0d
|
marked some candidate card that can be implemented
|
2011-06-24 10:12:15 +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 |