Skip to content

Instantly share code, notes, and snippets.

@WenLiangTseng
WenLiangTseng / tourney.php
Last active December 20, 2015 02:59 — forked from sterlingwes/tourney.html
對戰表的繪製
<!DOCTYPE html>
<html>
<head>
<title>Tournament Bracket Generator</title>
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script src="http://underscorejs.org/underscore-min.js"></script>
<script>
$(document).on('ready', function() {
var knownBrackets = [2,4,8,16,32], // brackets with "perfect" proportions (full fields, no byes)