I read this question and I remember the Wikipedia List of Algorithms . I know that Wikipedia also has a list of open source games, but what I want is links to simple game algorithms, even if they are written in pseudocode.
As "simple" games, I mean games like Sudoku, Bejeweled, Solitaire, Minesweeper, Labyrinth, Snakes, Gorilla, Chess, Tetris, etc.
Bonus for C # source code :)
Most game algorithms are just search algorithms. In fact, you could say that AI is a search.
, - . Prolog.
Minimax, Minimax -.
Minesweeper NP-complete. .
, "" , - , Life. - , , - /. - , , . , - > - > . , , , - .
, Conway Game of Life. :
, .
, , . , Bejeweled 8x8, 7 . , 8 . , , , ( ) , . , ? , , ?
, , , , , - . (, :))
Here is the algorithm for most games:
After initializing the game ...
Hope this helps.