I am a newbie on game programming, i usually programmed enterprise software.

my questions is which math do i need to learn in order for me to create these games

* Snake game
* Tetris
* Card Games like solitaire and the like

Any reference/books that will help me to create this game is very much appreciated

Many thanks.