GUI:
Made it so it draws a line between all the past positions of the boat, in the corresponding color of the boat.
Also created a function getPastPosition that handles requests for past position, to overcome strange lines.
GUI:
Made it so it draws a line between all the past positions of the boat, in the corresponding color of the boat.
Also created a function getPastPosition that handles requests for past position, to overcome strange lines.
Edit:
After short debugging made some small error corrections, now the drawLine draws no unexpected lines and the array is correctly read.