Skip to content

Instantly share code, notes, and snippets.

View kimpro82's full-sized avatar

Kangrok Kim kimpro82

View GitHub Profile
@damianesteban
damianesteban / classes_in_game
Created August 15, 2013 00:54
text game with classes in python, from activestate.com
## bctg.py
## by andrew wayne teesdale jr.
class LL:
def __init__(self, ll, name):
import random
self.randnum=random.choice(['True', 'False'])
self.msg=random.choice(['I dont know.', 'Oh, Yes '+ll, 'I think '+name+' knows.'])
def say_to(self, msg):
## msging system
print msg