Sha256: dfb67d73a6d371cef7a49b67ab4e47a5762fcd5da93dc6720e0c5ddfbc230403
Contents?: true
Size: 663 Bytes
Versions: 2
Compression:
Stored size: 663 Bytes
Contents
# encoding: UTF-8 require_relative 'board' require_relative 'client_interface' require_relative 'network' class Runner attr_reader :network def initialize(host, port, client) puts 'Software Challenge 2015' puts 'Ruby Client' puts "Host: #{host}" puts "Port: #{port}" board = Board.new(true) @network = Network.new(host, port, board, client) end def start self.network.connect if self.network.connected == false puts 'Not connected' return end while self.network.connected self.network.processMessages sleep(0.01) end puts 'Program end...' self.network.disconnect end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
software_challenge_client-0.1.3 | lib/software_challenge_client/runner.rb |
software_challenge_client-0.1.1 | lib/software_challenge_client/runner.rb |