MCPcopy Index your code
hub / github.com/battlecode/battlecode-2018 / viewer_handler

Method viewer_handler

battlecode-manager/server.py:646–652  ·  view source on GitHub ↗

This handles the connection to the viewer

(self)

Source from the content-addressed store, hash-verified

644 self.game.end_turn()
645
646 def viewer_handler(self):
647 '''
648 This handles the connection to the viewer
649 '''
650 for message in self.game.get_viewer_messages():
651 # TODO check this schema works for the viewer
652 self.send_message(message)
653
654 def handle(self):
655 '''

Callers 1

handleMethod · 0.95

Calls 2

send_messageMethod · 0.95
get_viewer_messagesMethod · 0.80

Tested by

no test coverage detected