Comet-Robotics / chessBot

♟️ control software for the chess bot project
http://chessbots.cometrobotics.org/
MIT License
6 stars 3 forks source link

[Server/Client]: Use an enum for the websocket message types #78

Closed xXDMOGXx closed 9 months ago

xXDMOGXx commented 9 months ago

WIP!

Task Description:

Right now we are using strings for denoting what the type of a message is (a move, a request for ids, etc). We should switch to using an enumerator instead. This will allows us to much more easily change and add messages. It will also prevent the possibilities of typos and confusion about what messages are supported.

Implementation Steps:

Everywhere that sends and reads messages will need to use the same mess

Difficulties:

Prioritization:

Extra Info:

Relevant Links:

Time Estimate:

If you have any questions while working on this task, post in the Programming Channel on Discord, reply to this issue on GitHub, or ask The Software Team Lead at one of our meetings.

xXDMOGXx commented 9 months ago

Already done in a branch soon to be merged