deeper-blue / sdp-robot

The robot code for Deeper Blue, an assistive chess-playing robot. Developed for the System Design Project, a 3rd year course offered at the School of Informatics, University of Edinburgh.
2 stars 0 forks source link

Comms object #32

Closed pilif0 closed 5 years ago

pilif0 commented 5 years ago

The Comms component is currently a simple script. I would suggest making it part of a class - the socket being a field, initializing and binding the socket in __init__, splitNcheck being a method, and the starting to listen and while loop being contained in a method named something like listen. Furthermore the class should have the HLI object being used as a field that is given to it in the constructor.

That way we can change whether it uses the dummy or proper implementations of the HLI without having to change this source file and restarting the script.