I'm trying to make a snake game with additional functionality where snake can eat different types of food some of the foods will give it special powers for some time. like that
For designing diff. food i'm making a food interface. And all types of food implement it. So that using only Food's ref. i can create any type of food.
The only power is representing a power. I can represent it either on board or in the snake. Snake is the best option as it seems to be more logical. Can any one tell me how am i suppose to represent it??