get-started

View the Project on GitHub Engin-Boot/get-started

The Pong Game

pong

The Product

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:

The task

Cut the implementation into parts. State the responsibility of each part.