I have this at the moment, and it works. But I suspect the code could be more elegant. Thanks for any help.
int numberOnLeft(int number){
int ret;
if (number == 0) {
ret = 360;
} else {
ret = number - 1;
}
return ret;
}
int numberOnRight(int number){
int ret;
if (number == 360) {
ret = 0;
} else {
ret = number + 1;
}
return ret;
}