This repository has been archived on 2025-08-18. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
GGS/games/Pong-bots/pong-bot.rb
2011-04-12 18:29:47 +02:00

31 lines
No EOL
477 B
Ruby
Executable file

#!/usr/bin/env ruby -wKU
$: << "."
require 'ggs-network.rb'
require 'ggs-delegate.rb'
class PongBot
include GGSDelegate
def initialize
@ggs_network = GGSNetwork.new(self)
end
def ggsNetworkReady(ggs_network, ready)
@ggs_network.sendCommand("ready")
end
def ggsNetworkDefined(ggs_network, defined)
# do nothing
end
def ggsNetworkReceivedCommandWithArgs(ggs_network, command, args)
end
end
if __FILE__ == $0
PongBot.new
end