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.
The server file now should work properly:
(the italic sentences are things need to be noted)
messages will be sent from the PC(DICE) to the robot containing information required to call HLI functions (comma separated string of function name and arguments)
after the relevant function is called, 'Called function: specific function name here' will be responded
--- However, if things goes wrong, the specific error cannot be announced yet, it will only say that 'No action' is taken ---
this implementation will only listen to one connection at a time, as the socket is set to listen to 1 connection, and one command at a time. It will refused connection if the connection is already in use by saying something like 'already in use'. And it will only run one command at a time, after running the command, the connection will just close as commands are all executed.
this implementation correctly calls dummy high level functions, as it's printing the statements in dummy functions. For actual movement, still need to wait for checking.
The server file now should work properly: (the italic sentences are things need to be noted)
messages will be sent from the PC(DICE) to the robot containing information required to call HLI functions (comma separated string of function name and arguments)
after the relevant function is called, 'Called function: specific function name here' will be responded --- However, if things goes wrong, the specific error cannot be announced yet, it will only say that 'No action' is taken ---
this implementation will only listen to one connection at a time, as the socket is set to listen to 1 connection, and one command at a time. It will refused connection if the connection is already in use by saying something like 'already in use'. And it will only run one command at a time, after running the command, the connection will just close as commands are all executed.
this implementation correctly calls dummy high level functions, as it's printing the statements in dummy functions. For actual movement, still need to wait for checking.