We need to develop and release this software for the gaming community.
One way is to code it all in the main
function.
void main() {
while(1) {
//poll the input
//check collisions, change directions, count points...
//update UI
//declare winner and quit(?)
}
}
This has obvious drawbacks:
Cut the implementation into parts. State the responsibility of each part.