git.alexw.nyc home about git garden
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39
   40
   41
   42
   43
   44
   45
   46
   47
   48
<head>
	<meta charset="utf-8">
<style>
table { font-family: Arial, Helvetica, sans-serif; border-collapse: collapse; width: 100%; }
td, th { border: 1px solid #ddd; padding: 8px; }
tr:nth-child(even){background-color: #f2f2f2;}
tr:hover {background-color: #ddd;}
#th { padding-top: 12px; padding-bottom: 12px; text-align: left; background-color: #04AA6D; color: white; }
.hover_img a { position:relative; }
.hover_img a span { position:absolute; display:none; z-index:99; }
.hover_img a:hover span { display:block; }
</style>
<title>3 card blind data analysis</title>
<script src="sorttable.js"></script>
</head>
<body>
	<h1>3 Card Blind Data Analysis</h1>
	Full, cleaned data for <a href="//3cardmagic.org">3 card blind metashape</a>. Source code can be found <a href="//git.alexw.nyc/3cardblind">here</a>. <a href="export.tsv">Download</a> an export as tsv-formatted data.<br>
	<b>Bold</b> represents that that round is the first time this card was played.
	<p>Click on a header to sort by that value.</p>
	<table class="sortable">
	<th><td>player</td><td>card 1</td><td>card 2</td>
	<td>card 3</td><td>group</td><td>score</td><td>final</td>
	</th>
	{% for deck in decks %}
	<tr>
		<td>{{deck.round}}</td>
		<td>{{deck.player}}</td>
		{% set cards = [deck.card1, deck.card2, deck.card3] %}
		{% set new = [deck.card1new, deck.card2new, deck.card3new] %}
		{% for card, new in cards|zip(new) %}
		<td>
			<div class="hover_img">
			<a href="https://scryfall.com/search?q={{card}}">
				{% if new %}<b>{{card}}</b>{% else %}{{card}}{% endif %}
			<span>
				<img loading=lazy src="https://api.scryfall.com/cards/named?exact={{card}}&format=image&version=small" /></span></a>
			</div>
		</td>
		{% endfor %}
		<td>{{deck.prelim_group}}</td>
		<td>{{deck.prelim_score}}</td>
		<td>{{deck.final_score or ""}}</td>
	</tr>
	{% endfor %}
	</table>
</body>
</html>