Mahjong Game

init python: class card: def __init__(self, name, cost): self.name = name self.cost = cost

class Hand: def __init__(self, money=100): self.money = money self.items = []

def draw(self, card): #if self.money >= item.cost: self.items.append(item) return True #else: #return False

def win(self, amount): self.money += amount

def has_item(self, item): if item in self.items: return True else: return False

http://webcache.googleusercontent.com/search?q=cache:W6I2sr1KQJQJ:pygame.org/project-Blackjack-640-.html+&cd=4&hl=sv&ct=clnk&gl=dk

http://webcache.googleusercontent.com/search?q=cache:fHIRvWVDX4wJ:games.renpy.org/game/lady-lucks-due-blackjack+&cd=1&hl=sv&ct=clnk&gl=dk

https://webcache.googleusercontent.com/search?q=cache:EHSuR97N9E0J:https://github.com/soravux/Mahjong-Dynasty+&cd=2&hl=sv&ct=clnk&gl=dk

http://webcache.googleusercontent.com/search?q=cache:jJf5GC29IZ4J:ubuntuforums.org/showthread.php%3Ft%3D944548+&cd=3&hl=sv&ct=clnk&gl=dk

http://webcache.googleusercontent.com/search?q=cache:QqrQQwvSyY4J:stackoverflow.com/questions/10025248/anyone-have-the-algorithm-for-determine-if-a-hand-of-mahjong-game-wins-or-not+&cd=4&hl=sv&ct=clnk&gl=dk