I want to practice on using classes to program, I feel that using the OOP approach when programming anything is very important to learn C++. I am trying to make a snake game, but I am not good at using classes. I was wondering if you can give me some suggestion on how many different classes i should make for the game.
I know i need a Snake class.
Do I need a Board class too? which displays the board
If i use a board class and a snake class, how do I use these classes together, to display the snake class inside the board class.
Do you guys have any links that you can shared for me to learn more about building classes, and linked list which i should use to "grow" the snake.
I have a good book that would probably help you a lot -- "The Object-Oriented Thought Process" -- helped me out quite a bit.. maybe use a "block" class for each of the walls, or maybe a "badguy" class if you want to spice it up a bit.
I usually have an "interaction" class that has hitTest functions to pass on to every other class. but then again, thats just my style, :P