Commit graph

111 commits

Author SHA1 Message Date
reimannsum
881ffe4049 Merge pull request #3 from reimannsum/patch-2
adding HTML support to utils.py
2015-10-30 12:37:17 -04:00
reimannsum
2404095ef1 Merge pull request #2 from reimannsum/patch-3
Patch 3
2015-10-30 12:35:47 -04:00
reimannsum
91ed957010 Merge pull request #1 from reimannsum/patch-1
fix for cards with rarity
2015-10-30 12:34:23 -04:00
reimannsum
6a1872ccf4 Create process_output.sh
script to format ans summarize each output in the cards directory
2015-10-30 12:05:15 -04:00
reimannsum
fb62978e19 Create make_output.sh
script to sample every checkpoint, only if not training, then rsync to remote location
2015-10-30 12:02:21 -04:00
reimannsum
45caa1c16e Update cardlib.py
Adding formatting to the format() function to allow for html output
2015-10-30 11:37:20 -04:00
reimannsum
8f49803581 Update decode.py
Adding support for producing html file outputs.

INCOMPLETE: not sure how to specify how to write the output file for '.html'
not sure how to/if can require only html flag
2015-10-30 11:11:07 -04:00
reimannsum
c9fcfce18c utils.py
adding HTML support
2015-10-30 09:33:29 -04:00
reimannsum
240a4f67f3 fix for cards wuth rarity
now without legacy support, due to revision updating from legacy version
2015-10-29 10:24:31 -04:00
Bill Zorn
18b7a69f90 added line transforms, not totally sure if they work yet 2015-09-06 21:58:56 -07:00
Bill Zorn
7dbd56a9bd updated encode and decode to use new, unified formats 2015-09-06 20:24:19 -07:00
Bill Zorn
377aa9453c edits and clarifications 2015-08-16 02:33:00 -07:00
Bill Zorn
10b5729954 updated documentation 2015-08-16 02:11:26 -07:00
Bill Zorn
e58a4b11c4 added line break for clarity 2015-08-15 19:18:47 -07:00
Bill Zorn
5d5d46bafe added instructions for MSE2 on Ubuntu 2015-08-15 19:17:22 -07:00
Bill Zorn
a250e562c9 changed headings to be smaller 2015-08-15 13:51:44 -07:00
Bill Zorn
ed50a8f0cc added dependencies file to explain how to make everything work 2015-08-15 13:49:36 -07:00
Bill Zorn
5fbd2dca8e Improved MSE support; lots of cool stuff goes into notes, and bsides work.
Also changed the phrasing of uncast a bit to be clearer for unpasses.
2015-08-14 23:40:47 -07:00
Bill Zorn
77835f9f08 Merge branch 'PAK90-master' 2015-08-11 00:16:19 -07:00
Bill Zorn
438bc86be9 Integration and unbreaking of MSE support changes.
There are still several major issues -
      MSE cards look decent, but there is virtually no text prettification.
      Split cards (bsides) are not supported at all.
      There is no abuse of the notes field to dump additional data yet.
2015-08-11 00:13:31 -07:00
PAK90
cda98f6209 Fixed Planeswalker loyalty costs. 2015-08-08 21:36:05 -06:00
PAK90
29e604cddf Nearly finished planeswalkers, fixed lands, added titlecase for capitalization, fixed choices.
Removed snow mana from land mana cost.
Planeswalkers almost done; need to handle those with loyalty costs above
9.
titlecase.py provides much better capitalization for names and
rulestext.
Choices now have dash and bullet points.
2015-08-08 21:19:00 -06:00
PAK90
1bc3c724a1 Added MSE2 export feature. 2015-08-08 15:03:37 -06:00
Bill Zorn
70bec99138 added support for checking cardnames 2015-08-01 22:16:30 -07:00
Bill Zorn
758f48b790 updated to new mtgjson version and added legacy support for formats
without a rarity field
2015-08-01 13:26:03 -07:00
Bill Zorn
f0e631e015 added rarity to the default fields 2015-08-01 02:26:34 -07:00
Bill Zorn
0ec41d60a6 added MIT license 2015-07-29 01:21:52 -07:00
Bill Zorn
49e386ac4f various improvements, added cbow 2015-07-29 01:21:34 -07:00
Bill Zorn
08dc3944f8 made decoding better 2015-07-23 01:04:40 -07:00
Bill Zorn
c5231ac947 fixed a few little things 2015-07-17 01:48:12 -07:00
Bill Zorn
747614e355 Added decode script with two supported formats.
Other misc fixes as well, we get all of the choice cards right in the encoding.
2015-07-17 01:13:58 -07:00
Bill Zorn
2a0e014c41 Changed things to use the python module system better and have argparse.
Encode now supports multiple formats, still working on decoding them nicely.
2015-07-15 23:40:15 -07:00
Bill Zorn
40fc695826 Card now has flexible input from encoded formats. Data mining code updated.
Unfortunately, python does not do import in a nice way without using the
full bore module system, I'll deal with that another day.
2015-07-14 23:27:21 -07:00
Bill Zorn
31877972c2 now we actually sort before pseudo-randomizing so we don't depend on dict order 2015-07-14 20:40:56 -07:00
Bill Zorn
1a4965fd83 EVERYTHING HAS CHANGED
Added lib and script subdirs to organize things; the biggest change is that now
we have a really powerful Card class that can handle all of the decoding and
encoding for us. encode.py has been written to take advantage of this, other
things have not yet. Coming soon! As a side note the changes to output.txt
are purely cosemtic, though the order should be stable now.
2015-07-14 00:07:25 -07:00
Bill Zorn
cbf8ac34e5 Datamining code is in a working state, randomize_mana.py is a good demo
of a really specific feature. Other improvements; changing the keys used
during json decode reordered everything in output.txt, but there shouldn't
be any other major changes.
2015-07-08 00:22:54 -07:00
Bill Zorn
01c78549f5 made things better, probably usable, definitely not final 2015-07-07 02:26:09 -07:00
Bill Zorn
7db63b9b56 actually finished the symbols code in utils, probably decoding works 2015-07-06 23:03:33 -07:00
Bill Zorn
0257d352dd mostly reordings because mtgjson updated, will-o'-the-wisp seems to be new 2015-07-06 22:41:52 -07:00
Bill Zorn
8298788b73 here's the updated output file with many mana encoding errors fixed 2015-07-06 22:27:41 -07:00
Bill Zorn
db0b9a9f9a split most of the code from config into utils, encode now uses utils as a lib
fixed MANY MANY ERRORS in the original output file by using this superior code
2015-07-06 22:26:25 -07:00
Bill Zorn
110ac8473c added base config file, it should work but it isn't used yet.
otherwise things are back to normal. minor output updates, removed conspiracies
2015-07-06 00:15:12 -07:00
Bill Zorn
eef2e70e28 the encoding now makes 2 manacosts, one before and one after the text!
there are some other (temporary) changes too, things are a mess.
let's worry about that later.
2015-07-05 00:59:02 -07:00
Bill Zorn
b4f8d26a20 updated readme 2015-07-04 02:50:40 -07:00
Bill Zorn
336ac2701c significantly enhanced datamining code, maybe it even does something 2015-07-04 02:39:41 -07:00
billzorn
3223618873 added datamining code, it doesn't do anything yet 2015-07-01 21:11:33 -07:00
billzorn
33a8b6d58f hacked in legacy support 2015-06-30 23:21:39 -07:00
billzorn
77133cbed6 fixed edge case with nonmana equip costs 2015-06-30 23:09:05 -07:00
billzorn
b63b950955 sorting and unscrambling now handle new choice format 2015-06-30 23:02:48 -07:00
billzorn
749c7daea8 changed the comment marker from # to %, just because 2015-06-30 22:20:04 -07:00