Reversi game engine

This is the text-only version of reversi.c. The game engine is identical, but input requires only the keyboard and output is to a terminal.