Skip to content

Instantly share code, notes, and snippets.

@jackdreilly
Created January 3, 2012 21:30
Show Gist options
  • Save jackdreilly/1557027 to your computer and use it in GitHub Desktop.
Save jackdreilly/1557027 to your computer and use it in GitHub Desktop.
# Read username, output from non-empty factory, drop connections
from twisted.internet import protocol, reactor
from twisted.protocols import basic
from messaging import Message, message, MessageProtocol
class ContactGameProtocol(MessageProtocol):
@message('GIVE_CLUE')
def give_clue(self,clue):
return
@message('GUESS_CLUE')
def give_clue(self,clue):
return
@message('GIVE_WORD')
def give_clue(self,clue):
return
@message('GUESS_WORD')
def give_clue(self,clue):
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment