Commit 57f30d7f authored by Matthew Hausknecht's avatar Matthew Hausknecht

Changed default server port in examples to 6000.

parent adf0a8d2
...@@ -11,7 +11,7 @@ int main() { ...@@ -11,7 +11,7 @@ int main() {
// Create the HFO environment // Create the HFO environment
HFOEnvironment hfo; HFOEnvironment hfo;
// Connect the agent's server // Connect the agent's server
hfo.connectToAgentServer(6008); hfo.connectToAgentServer(6000);
// Play 5 episodes // Play 5 episodes
for (int episode=0; episode<5; episode++) { for (int episode=0; episode<5; episode++) {
hfo_status_t status = IN_GAME; hfo_status_t status = IN_GAME;
......
...@@ -27,7 +27,7 @@ class HFOEnvironment(object): ...@@ -27,7 +27,7 @@ class HFOEnvironment(object):
self.numFeatures = None # Given by the server in handshake self.numFeatures = None # Given by the server in handshake
self.features = None # The state features self.features = None # The state features
def connectToAgentServer(self, server_port=6008): def connectToAgentServer(self, server_port=6000):
'''Connect to the server that controls the agent on the specified port. ''' '''Connect to the server that controls the agent on the specified port. '''
self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
print '[Agent Client] Connecting to Agent Server on port', server_port print '[Agent Client] Connecting to Agent Server on port', server_port
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment