This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<!-- Helpful things to keep in your <head/> | |
// Brian Blakely, 360i | |
// http://twitter.com/brianblakely/ | |
--> | |
<head> | |
<!-- Disable automatic DNS prefetching. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
util = require 'util' | |
after = (time, args..., callback) -> setTimeout callback, time, args... | |
class Game | |
score: 0 | |
score_step: 20 | |
constructor: (@client, @difficulty = 800) -> | |
@send 'HELO :Welcome to Pong!' | |
@send 'HELP :When you receive a PING <code>,' | |
@send 'HELP :reply quickly with PONG <code>,' |