Skip to content

Instantly share code, notes, and snippets.

View mgardne8's full-sized avatar

Matt Gardner mgardne8

View GitHub Profile

Keybase proof

I hereby claim:

  • I am mgardne8 on github.
  • I am mgardne8 (https://keybase.io/mgardne8) on keybase.
  • I have a public key ASAeBBydyBQgDu_NnEOdYwchvQk5mJUWanrYnEDJR3ZnNgo

To claim this, I am signing this object:

@mgardne8
mgardne8 / card.py
Created June 7, 2017 19:41
Why am i doing this?
"""
Card class for Cards Cards Cards Cards......
"""
from .exceptions import CompareError
from .pile import Pile
from .enums import Values as VALUES
from enum import Enum
class Card(object):
"""Todo: Docstrings
@mgardne8
mgardne8 / Cards.py
Last active August 25, 2016 05:26
Apparently there are only 52 cards in a deck, not 56, who knew
"""
Lets Play Cards, Class
"""
from random import shuffle as rshuf
class Card(object):
def __init__(self, suit=None, value=None):
self.suit = suit
self.value = value
@mgardne8
mgardne8 / Test.py
Last active February 7, 2016 02:38
import time
import random
def mat(things):
res = []
for n in things:
if n not in res:
res.append(n)
return res