Commit Graph

561 Commits (master)

Author SHA1 Message Date
melvin f30d1508d0 move theme specific rules to Makefile in themes repo 2014-10-19 10:21:57 +08:00
melvin b6e373034c add rule to convert google code wiki page to markdown 2014-10-09 10:51:10 +08:00
melvin fa7b66bb4f remove extended cube as it is no longer officially supported 2014-09-28 09:25:32 +08:00
melvin 6f07bf5ad2 add rule to process cards.xml 2014-09-17 13:02:42 +08:00
melvin bb9389edf6 add awk script and rule to generate image url from gallery page 2014-09-14 19:43:19 +08:00
melvin 213e48992a update Mouse library 2014-09-11 13:40:02 +08:00
melvin 408de1b9f2 enable globstar in bash 2014-09-08 09:13:18 +08:00
melvin a87a78eb4f comment out img-mtgimage and remove url-magiccard from normalize_files 2014-09-08 08:56:05 +08:00
melvin da9c36dba3 update path to incomplete dir 2014-09-02 11:22:00 +08:00
melvin 7957a49343 set headless to true in AI vs AI test to simulate environment on CI server 2014-09-02 10:45:08 +08:00
melvin ecc5e3fbb1 add rule to merge from firemind 2014-08-17 10:11:51 +08:00
melvin e8a8f149c2 correct command to remove extra 2014-08-08 10:22:48 +08:00
melvin 92c726ecdc normalize card scripts 2014-08-08 09:07:13 +08:00
melvin 75ddd574bb rename Make rule incoming to changes and show result of 'hg outgoing' 2014-08-03 14:29:04 +08:00
melvin 6992193037 remove special handling of 0/0 and pt with * 2014-08-02 16:33:34 +08:00
melvin 5173065fa2 move check_missing to first step as it is fast 2014-08-02 16:00:21 +08:00
melvin 56ad052dc1 check for extra files in scripts_missing as part of regular sanity checks 2014-08-02 10:48:06 +08:00
melvin 203b4b5fad try to parse scripts_missing without throwing exception 2014-07-31 21:43:03 +08:00
melvin 6e445b380c determine number of pages to pull automatically 2014-07-27 11:13:21 +08:00
melvin 7f7d37d431 add -noverify to Makefile 2014-07-22 11:57:01 +08:00
melvin 83fb7475f1 add rule to check for overlap between scripts and scripts_missing 2014-07-08 15:27:30 +08:00
melvin 2e946290a3 remove extra ', ' at end of formatted card names 2014-06-28 19:49:20 +08:00
melvin f3ad7dd8bf update rule to generate rules.txt to use converted MagicCompRules file as it is no longer available on the website 2014-06-14 09:03:38 +08:00
melvin c37bca2d21 enable asserts during debug run 2014-06-06 11:57:26 +08:00
melvin 890e5d5ae6 make debug return correct error code for failure case 2014-06-03 17:07:16 +08:00
melvin fe0c597392 cat out file when test games fail 2014-05-31 17:04:48 +08:00
melvin b3150d0dd8 update scripts to extract cards names from deckbox 2014-05-30 22:34:53 +08:00
melvin 2f3b016be5 remove checks for url property 2014-05-23 10:23:03 +08:00
melvin 78ab64ed61 add sed script to normalize names 2014-05-18 10:10:15 +08:00
melvin 28a6f6d6b2 include scripts_missing folder in release 2014-05-13 16:47:06 +08:00
melvin 6dfc318ab6 correct rule by adding magarena.dir and enabling assert 2014-05-12 15:48:21 +08:00
melvin fbf898502f find missing @Override annotation 2014-05-06 12:54:38 +08:00
melvin 9e69441d51 upgrade groovy to 2.3.0 2014-05-06 10:28:41 +08:00
melvin 3075bc171f update AllCardNames, convert replace non ASCII characters 2014-05-01 19:44:58 +08:00
melvin 6afa42427d add rule to generate list of cards with groovy code 2014-04-30 13:08:48 +08:00
melvin f25e89d9b8 add rule to perform checks and push changes 2014-04-26 09:35:06 +08:00
melvin 69b8e76c24 made regex for determining list of contributors more specific 2014-04-23 17:17:06 +08:00
melvin 783b9d6a80 correct counting of number of script files in a specific revision 2014-04-14 12:11:26 +08:00
melvin c147159941 show out file if debug fails 2014-04-14 10:26:15 +08:00
melvin b1093a807f make debug rule non interactive 2014-04-14 10:12:45 +08:00
melvin fac185da17 enable MCTS in buildhive test 2014-04-10 10:39:45 +08:00
melvin d4c2c81099 improve regex for matching target choice 2014-04-06 21:37:03 +08:00
melvin 8f100d138c add rule to find unused MagicTargetChoice 2014-04-06 21:35:09 +08:00
melvin 067fc83cbe remove temp files after rule is completed 2014-04-06 18:47:09 +08:00
melvin 7fb7f025af correct rule to check for unused filters in MagicTargetFilterFactory 2014-04-06 17:10:39 +08:00
melvin f1e7113ff2 move filter constants into MagicTargetFilterFactory 2014-04-06 17:04:14 +08:00
melvin 7e4649a485 add rule to detect unused filters 2014-04-06 11:15:49 +08:00
melvin d4f4538385 specify log file as env var 2014-04-02 13:54:29 +08:00
melvin 106f2a6d9a change buildhive test to use MMABC vs MMAB instead of MMABC vs MCTS due to issue with MCTS 2014-04-01 11:15:32 +08:00
melvin a61da6046a add option to pass additional flags to Java runtime 2014-04-01 09:55:44 +08:00
melvin 5b90e5a6e3 make correct-release-label generic uses variables mac, linux, and ver 2014-03-30 22:45:55 +08:00
melvin d087024810 rule to generate formatted list of new cards for including in readme 2014-03-29 19:43:45 +08:00
melvin 1c45088b7e add rule to compute common activation costs 2014-03-22 19:35:50 +08:00
melvin 4348f2b18c remove -ea from RUN 2014-03-13 17:21:56 +08:00
melvin 86e0e29fde simplify test rule in Makefile 2014-03-11 11:21:53 +08:00
melvin 7a1f79cc8b add check that every spell either has an effect property or requires_groovy_code property 2014-03-09 08:41:19 +08:00
melvin d9b4622e58 correct checks to account for new format of URL property 2014-03-06 10:59:47 +08:00
melvin c7a25cd398 include setting of url property in card script normalization 2014-03-05 15:09:26 +08:00
melvin b8629b3bb2 experimental rule to derive card url from card name 2014-03-05 10:11:02 +08:00
melvin 9c513aa655 remove accent in candidate cards 2014-03-04 13:21:06 +08:00
melvin 5a8c97669d mtgimage does not fail if there are no file to convert 2014-03-02 13:49:57 +08:00
melvin d88578af42 buildhive should always do a clean build 2014-03-01 17:51:19 +08:00
melvin 02f7ac6869 prevent buildhive from computing format card list 2014-02-28 11:25:44 +08:00
melvin b5bdb3377c replace curl with wget and sed with unaccent for downloading format list 2014-02-25 09:48:53 +08:00
melvin 41f8a48cbf add rules for working with github releases API 2014-02-24 12:01:38 +08:00
melvin 68252ed2cf update formats 2014-02-23 22:07:01 +08:00
melvin e6af7fc9c3 correct name canonicalization sed expression 2014-02-19 13:59:52 +08:00
melvin 2aab3af9ca perform check_decks as part of checks 2014-02-15 22:11:06 +08:00
melvin 164b5392b3 correct sed expression to handle requires_groovy_code reference with more than one name separator 2014-02-13 21:34:12 +08:00
melvin b644106f04 ensure that properties start at beginning of line 2014-01-26 10:02:30 +08:00
melvin 5374f12da9 replace cat with hg cat to get bytes_per_card for different revisions 2014-01-24 11:09:12 +08:00
melvin c37930c835 correct image URL to mtgimage.com as part of script normalization 2014-01-24 10:08:41 +08:00
melvin 7125fa70de check for empty return in scripts 2014-01-21 10:10:45 +08:00
melvin bbc1272085 check_tokens no longer assume token property appears immediately after name property in card script 2014-01-21 10:04:21 +08:00
melvin a60631f4c7 rule to generate difference in checked properties 2014-01-20 10:27:47 +08:00
melvin c33e21d29a check all repos for incoming changes 2014-01-10 11:22:43 +08:00
melvin e1455d71e1 improve regex to extract deck ids 2014-01-01 21:50:49 +08:00
melvin 03acb443cc improve method of extracting list of token names using awk script 2013-12-28 10:31:15 +08:00
melvin 15cd88c116 add rule to check for incoming changesets 2013-12-15 14:27:02 +08:00
melvin 226d4088e8 fix path to dec files 2013-12-15 09:17:47 +08:00
melvin 7e4f349e70 allow png files for image 2013-12-04 12:16:40 +08:00
melvin 7c385a5b8e add mtgimage rule to update image urls 2013-11-30 10:01:56 +08:00
melvin b06a5ab7ce rename check_unique_key to check_unique_property and add check_required_property and property_stats 2013-11-29 10:28:08 +08:00
melvin 72a6f29a17 remove duplicate check_tokens 2013-11-29 10:06:38 +08:00
melvin 376f88e5ef as part of normalization, remove empty lines in card script 2013-11-11 11:14:40 +08:00
melvin 07a56e6ac4 increase max memory for JVM to 512M 2013-11-10 09:57:06 +08:00
melvin 980f6ab54e move diff into src folder to be next to file it creates 2013-11-02 09:48:57 +08:00
melvin 12ae269259 annotate if card has groovy script in full text 2013-11-01 17:21:58 +08:00
melvin 118024524b add rule to automatically update MurmurHash3 from source 2013-10-29 14:45:38 +08:00
melvin 3c69d9327e added rule to check that cards in decks are present in the game 2013-10-28 11:16:43 +08:00
melvin c14a98323e move tokens check earlier 2013-10-23 21:14:56 +08:00
melvin a9e23cecfb check that every TokenCardDefinitions.get correspond to some token name] 2013-10-23 17:31:01 +08:00
melvin 617937fa21 remove check_tokens from checks as it can no longer infer token names from script 2013-10-17 16:29:53 +08:00
melvin 6f143900e3 for cards with multiple ratings, use the first one 2013-10-15 21:31:59 +08:00
melvin 3ae4268c04 added rule to find common actions 2013-10-15 17:57:55 +08:00
melvin 2d4c0935f8 move tokens check to the end 2013-10-14 11:29:08 +08:00
melvin 1f9889682a check that tokens declared equal tokens used 2013-10-14 10:58:44 +08:00
melvin 91a36d951e added rule untracked 2013-10-06 14:08:28 +08:00
melvin ba34426a6c fix path for symbolic link 2013-10-01 14:11:52 +08:00
melvin cbdd534b58 update for Java 7 package on Mac 2013-10-01 14:09:13 +08:00
melvin db4908cb83 build Mac bundle using appbundler 2013-09-29 13:59:47 +08:00
melvin ae435052f6 get list of cards in format from deckbox.org 2013-09-28 22:20:57 +08:00
melvin c62d226863 remove card system property in test 2013-09-26 14:12:41 +08:00
melvin 41ce5d73b2 merged Virulent Sliver, replace groovy script with ability in card script 2013-09-26 13:22:05 +08:00
melvin f211c205ec normalize deck files 2013-09-15 20:34:48 +08:00
melvin 4df844eea3 rename fix_eol to normalize_files 2013-09-09 09:55:38 +08:00
melvin 57f8a674de only remove leading space when computing bytes per card 2013-09-08 14:00:30 +08:00
melvin 6879cfe3d8 added rule to generate contributors for each release 2013-08-29 22:23:48 +08:00
melvin 2ccbb49683 include files changed in changelog 2013-08-29 14:14:00 +08:00
melvin db9a93d2ad simplify regex as requires_groovy_code is separated by semicolon instead of 'comma not follow by space' 2013-08-28 13:41:35 +08:00
melvin c05479960c added rule to generate forum post of card 2013-08-25 13:33:47 +08:00
melvin 253b8b0990 include groovy scripts in fix_eol 2013-08-11 09:42:21 +08:00
melvin 20096b7e05 added rule to compute reminder.txt 2013-08-10 18:45:54 +08:00
melvin 2ad9e53fec return success instead of error in mini awk script 2013-07-27 21:03:35 +08:00
melvin a4a6e9cdfb generate theme zips for all themes 2013-07-27 20:53:37 +08:00
melvin 1822c73cf9 added rule to generate changelog since last tag 2013-07-27 17:37:50 +08:00
melvin f98c50b418 ensure no duplicate property in card metadata 2013-07-19 21:06:48 +08:00
melvin 80b73729ba download last 200 decks instead of last 100 decks 2013-07-19 09:53:15 +08:00
melvin ab00e79ac5 added check_rarity rule 2013-07-17 21:00:32 +08:00
melvin 91ef43ec86 make cards/scriptable.txt a dependency of check_meta 2013-07-17 13:55:13 +08:00
melvin 2d1827fd73 use \a instead of \t for NO_OUTPUT 2013-07-17 13:31:42 +08:00
melvin 7445dbe281 added check_meta and NO_OUTPUT 2013-07-17 11:08:24 +08:00
melvin 9670167ad2 adjust format of analyze_cards to only output known values for existing cards 2013-07-16 17:16:44 +08:00
melvin 1c1d0dc386 ignore error code from download decks 2013-07-14 14:37:34 +08:00
melvin d26dc20812 added rule to get last 100 decks from mtgtop8 2013-07-14 10:11:06 +08:00
melvin 7ffff51e35 remove use of iconv 2013-07-13 19:56:40 +08:00
melvin 863d87dbd6 ignore groovy expression 2013-07-09 15:49:12 +08:00
melvin 5d352c9ebf added rules to check url and image property in card description 2013-07-03 09:46:03 +08:00
melvin d5adc320a0 %.d runs with asserts enabled 2013-06-24 10:33:47 +08:00
melvin 543d3db29e improved checking of unique key, not all keys contains = symbol 2013-06-19 12:02:47 +08:00
melvin 9c6e76d768 remove check_requires_card_code rule as all card code has been converted to groovy code 2013-06-03 10:46:48 +08:00
melvin 7fec9b9c88 use simian to find code clones 2013-06-02 22:22:36 +08:00
melvin 9289792a4e set debug to true for rule inf 2013-06-01 20:15:09 +08:00
melvin 6fcc4bb107 debug defaults to false for rule %.t, benchmark set debug to true explicitly 2013-06-01 20:13:04 +08:00
melvin 2d4f89adf9 remove reference to src/magic/card from rule bytes_per_card 2013-05-31 15:59:13 +08:00
melvin 22c6f3e87a set debug to true when running AI vs AI 2013-05-28 15:26:17 +08:00
melvin d3266ff0d2 remove debug=true 2013-05-27 14:02:30 +08:00
melvin ec364fca02 added check_groovy_escape rule 2013-05-27 13:18:25 +08:00
melvin a8a7651145 convert from java code to groovy code 2013-05-26 10:21:18 +08:00
melvin e42b40b7c4 added rule to compute bytes_per_card 2013-05-25 16:14:01 +08:00
melvin ca2ecac76f inf prefix games with 0 and defaults to MMABFast 2013-05-25 11:53:39 +08:00
melvin 2c1b8bc3df count both cards with code and cards with script 2013-05-18 15:20:28 +08:00
melvin 9b8cfa7286 count only number of java files 2013-05-18 14:16:03 +08:00
melvin 565054c698 show number of remaining cards with code 2013-05-18 14:12:13 +08:00
melvin a3dca10e19 include rules in multi tag 2013-05-18 09:56:09 +08:00
melvin 3ef8bc9555 updated Mouse from 1.5.1 to 1.6 2013-05-17 20:06:47 +08:00
melvin b7c02de0d1 added debug rule 2013-05-16 16:13:28 +08:00
melvin f9dceaf74d rename update to add 2013-05-11 12:44:48 +08:00
melvin e079a61dc7 work on greater range of dates for exp output 2013-05-11 09:55:41 +08:00
melvin ed42e95144 added step to convert rules.txt to ascii first 2013-05-04 13:52:58 +08:00
melvin bb031f8d8a make debug configurable in interactive test 2013-05-04 09:26:05 +08:00
melvin faef737f35 express DEBUG in terms of JAVA 2013-04-29 22:47:32 +08:00
melvin b0d40ea60f store memory limit in variable 2013-04-29 20:37:46 +08:00
melvin 3231fec4f3 added variable for selfMode for interactive game 2013-04-28 10:40:49 +08:00
melvin b0613c8432 comment out old rule, fixed ai/benchmark.rnd to continue even if a particular benchmark run fails 2013-04-22 10:46:51 +08:00
melvin 9ad57d828f renamed some constants for clarity 2013-04-20 21:39:59 +08:00
melvin 31c0ac8a1f remove unnecessary merge rule 2013-04-20 12:14:14 +08:00
melvin e1a68f0fe8 random pairing as default for AI benchmarking 2013-04-20 10:19:03 +08:00
melvin f1bd27a4e4 use ts instead of ts2 2013-04-16 16:52:02 +08:00
melvin 7ac9ee3b18 added rule to benchmark two different AIs randomly 2013-04-16 16:51:33 +08:00
melvin bcf4bd6373 use the same meaning for % in benchmark and merge 2013-04-16 14:28:36 +08:00
melvin da3ec6b8d3 infer the name of the AI using the awk script instead of hardcoding it in the Makefile 2013-04-16 10:51:28 +08:00
melvin ff381a5f3c compute gamma instead of elo 2013-04-15 17:17:36 +08:00
melvin 6310a6d494 add a space before the pipe operator 2013-04-15 13:59:33 +08:00
melvin af93f68036 reduce games to 10 for benchmarking 2013-04-15 11:22:25 +08:00
melvin 353f2acec8 added rules for AI benchmarking 2013-04-14 11:40:55 +08:00
melvin f23563c425 test MMABC vs MCTS for hourly build 2013-03-31 19:25:52 +08:00
melvin dfc2ea84d2 make ai2 configurable 2013-03-24 20:12:22 +08:00
melvin 54f57d642f added MMAB2 for testing how AI changes affects AI performance 2013-03-24 09:59:36 +08:00
melvin 0f7c832e12 convert from java code to groovy code 2013-03-13 21:30:59 +08:00
melvin 07f24d2fd7 convert from java code to groovy code 2013-03-13 20:55:53 +08:00
melvin 045052540f convert from java code to groovy code 2013-03-13 20:52:31 +08:00
melvin 679f8458e1 correct reference to groovy jar 2013-03-12 20:31:34 +08:00
melvin 153a06ae1c use recursive grep instead of shell expansion 2013-03-11 22:04:38 +08:00
melvin 395c15b567 fix checks for scripts that refer to multiple cards in requires property 2013-03-11 21:54:50 +08:00
melvin 1240c680fc decrease games to run on buildhive to 300 2013-03-10 13:50:30 +08:00
melvin 7f0855a534 make it possible to change AI level and number of games in AI vs AI match rule 2013-03-09 21:44:47 +08:00
melvin 5981db37b1 compute cards_per_set as a tab separated file 2013-03-08 11:05:46 +08:00
melvin b9b84fc11a added rule to compute cards per set 2013-03-07 22:58:14 +08:00
melvin 4938e867f6 generate tags first 2013-02-18 17:20:00 +08:00
melvin c387538716 rename rule check to checks 2013-02-16 10:28:06 +08:00
melvin 88836c363e improved rule to compute scored_by_dec.tsv 2013-02-15 14:23:42 +08:00
melvin fd5dcff48c change scoring to use top 8 decks 2013-02-15 13:45:23 +08:00
melvin 7861c9f8d1 improve regex for properties key 2013-02-14 22:34:05 +08:00
melvin b1134c6e14 rename check_all to check 2013-02-14 16:56:52 +08:00
melvin bfdb0ed9ea added cycling to parser 2013-02-13 12:30:51 +08:00
melvin 50cd118671 added rule to run on buildhive 2013-02-12 12:20:22 +08:00
melvin f6a539b3ea added brown_theme.zip to rule themes 2013-02-12 10:56:20 +08:00
melvin fecd4b27a4 make it possible to customize the number of games in non interactive test 2013-02-12 09:58:21 +08:00
melvin 231e40356f incorporate incomplete scripts into score computation 2013-01-18 17:27:34 +08:00
melvin ac9c06f2a5 added rule to check for correspondence of card script and groovy script 2013-01-13 10:14:58 +08:00
melvin 0e16d12d9e generalize fix_eol to all txt files 2013-01-07 21:58:53 +08:00
melvin bf3268e473 rename fix_noeol to fix_eol, also changes to UNIX line endings 2013-01-07 13:30:38 +08:00
melvin 0031aa0e4b add lib to release 2013-01-06 14:20:50 +08:00
melvin 8b399125ba added rule to check that properties in script files are unique 2012-12-31 16:29:21 +08:00
melvin f01ac6cf0e added script to fix files that does not end of newline 2012-12-28 11:08:26 +08:00
melvin 94ef302dc0 handle card scripts that does not end with newline 2012-12-24 23:03:36 +08:00
melvin 62a1403de3 generalized 'that creature's controller' to work for any permanent 2012-12-15 11:37:52 +08:00
melvin 6acc44d88a move parser code from grammar to src/magic/grammar 2012-12-13 14:12:53 +08:00
melvin 0cf7815ccc rename decks/dec to decks/dl, fixed rule to get comprehensive rules 2012-12-08 20:24:31 +08:00