diff --git a/dark_geometric_@2X.png b/dark_geometric_@2X.png deleted file mode 100644 index 07f5137..0000000 Binary files a/dark_geometric_@2X.png and /dev/null differ diff --git a/index.html b/index.html index 850287b..312591a 100644 --- a/index.html +++ b/index.html @@ -1,106 +1,28 @@ +
- - - - -You like Set? Well THIS SET IS FOR PROS. It's Pro Set. Dots cancel each other out between cards. Find sets of cards where every dot is cancelled out. Seven cards makes it actually impossible for there to not be a set, so quit your belly-aching and look harder.
-+ You like Set? Well, THIS SET IS FOR PROS. It's Pro Set. Dots cancel each other out between + cards. Find sets of cards where every is cancelled out. Seven cards makes it + actually impossible for there to not be a set, so quit your belly-aching and + look harder. Or or + . +
+You found " + score + " sets.
" - } -} - -var my_xor = function (list) { - // regular xor for each card in the list - var result = list[0]; - for (var i = 1; i < list.length; i ++) { - result = result ^ list[i]; - } - return result; -} - - -var increment_score = function () { - score ++; - $('#score').text(score); -} - -var deck = create_deck(); -for (var i = 0; i < 3; i ++){ - $('div#deck').append("") -} - - - - -var shuffled_deck = shuffle(deck); -//initialize pool of cards -var pool = []; -for (var i = 0; i < pool_size; i ++) { - pool = deal(shuffled_deck, pool, i); -} - -display(pool, deck); - -$('div.card').bind('click', function() { - // console.log($(this).attr('id')) - check($(this).attr('id')) -}); - diff --git a/prosetTest.py b/prosetTest.py deleted file mode 100644 index 160917c..0000000 --- a/prosetTest.py +++ /dev/null @@ -1,27 +0,0 @@ -import random - - -def create_deck(): - unshuffled_deck = [] - for i in range(64): - binary = bin(i)[2:] - while len(binary) < 6: - binary += '0' - unshuffled_deck.append(binary) - - return unshuffled_deck - -def shuffle(unshuffled_deck): - shuffled_deck = [] - while unshuffled_deck: - randInt = int(random.random()*len(unshuffled_deck)-1) - shuffled_deck.append(unshuffled_deck.pop(randInt)) - return shuffled_deck - -deck = create_deck() -print deck - -shuffled_deck = shuffle(deck) -print shuffled_deck - - diff --git a/style.css b/style.css deleted file mode 100644 index cff257c..0000000 --- a/style.css +++ /dev/null @@ -1,159 +0,0 @@ -* { - margin:0; - padding:0; -} - -body { - font-size: .75em; - font-family: 'Montserrat', sans-serif; - text-align: center; - margin: 4em; -} - -h1 { - font-size: 4em; - font-weight: 700; - padding-bottom: 0.5em; -} - -#deck { - width:10%; - min-width: 6em; - margin-left: -10em; - margin-right: 5em; - display: inline-block; - /*vertical-align: top;*/ -} - -#wrapper { - width: 80%; - min-width: 40em; - display: inline-block; - vertical-align: top; - text-align: center; -} - -.card { - background-color: #2a2b2a; - width: 12em; - max-width: 20em; - height: 16em; - margin: 0 3% 2em 0; - position: relative; - display:inline-block; - -webkit-transition:background-color s, -webkit-transform s; - transition:background-color s, transform s; -} - - -.card_back{ - background-image: url("dark_geometric_@2X.png"); - margin-top: -11.6em; - margin-left:1px; - width: 10em; - height: 12em; - /*border: 1px solid #CCC;*/ -} - -.card_back:first-child{ - margin-top: 0; -} - -.dot { - width:2em; - height:2em; - border-radius: 50%; - content: ' '; -} - -.top-left { - /*red*/ - background-color: #c23d4b; - position:absolute; - top:2em; - left:2em; - -} -.mid-left { - /*blue*/ - background-color: #4287c7; - position:absolute; - top:44%; - left:2em; -} -.bottom-left { - /*green*/ - background-color: #1d7d3d; - position: absolute; - left:2em; - bottom:2em; -} -.top-right{ - /*purple*/ - background-color: #8177b7; - position:absolute; - top:2em; - right:2em; -} -.mid-right{ - /*yellow*/ - background-color: #f1ca1b; - position:absolute; - top:44%; - right:2em; -} -.bottom-right{ - /*orange*/ - background-color: #e16326; - position: absolute; - bottom:2em; - right:2em; -} -.on{ - visibility: visible; -} -.off{ - visibility: hidden; -} -.table{ - width:75%; - display: inline-block; - vertical-align: top; -} - -.scorecard { - font-size: 2em; - font-weight: 700; - padding-bottom:0.5em; - /*background-color: #2a2b2a;*/ - /*color:#fff;*/ - color: black; - width: 100%; - /*padding:1em 1.5em;*/ - /*position: fixed;*/ - /*border-radius: 20px;*/ - /*right: -20px;*/ - /*top: 100px;*/ -} - -.text-block { - margin:7%; - display: inline-block; - text-align: left; - background-color: #ddd; - width: 100%; - padding:3em 10%; - max-width: 50%; -} -.selected { - /*border: solid 12px grey; - /*background-color: black;*/ - background: repeating-linear-gradient( - 135deg, - #2a2b2a, - #2a2b2a 10px, - #000 10px, - #000 20px - ); - background-color: black; -} \ No newline at end of file