Sha256: 583c653ae5bcef9fba9cf6bdfd92be400ca8a7da81c475f0be895c2c6ae81e86
Contents?: true
Size: 695 Bytes
Versions: 2
Compression:
Stored size: 695 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, reservation = nil) puts 'Software Challenge 2015' puts 'Ruby Client' puts "Host: #{host}" puts "Port: #{port}" board = Board.new(true) @network = Network.new(host, port, board, client, reservation) 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.5 | lib/software_challenge_client/runner.rb |
software_challenge_client-0.1.4 | lib/software_challenge_client/runner.rb |