Implement a reversi engine
Your job, for this golf, is to write a program that will take moves of a game of reversi (othello) and display the result to the user.
Input
A string of numbers taken from the range [0-7]. Each pair of numbers represent first the X coordinate, then the Y coordinate. Any characters not in that range should be ignored.
Output
A visual representation of the result of the game, including who is leading when the input ends. This may be graphical or keystroke output, but it must be a visual grid of the game, with a distinct character/graphical symbol for black, white, and empty.
Additionally, your code should output an error message and stop when an illegal move is entered (the same square more than once, or a square that will not flip any tiles).
Skips should be handled gracefully. A skip occurs when one color has no legal move, their turn is skipped and the other player gets to play.
Black always goes first.
Examples
23
........
........
........
..bbb...
...bw...
........
........
........
b
232425140504032627
........
........
........
b.bbb...
bbbww...
b.b.....
..b.....
..b.....
b
2324322513
........
........
........
..bbb...
..www...
........
........
........
e
23242555
........
........
........
..bbb...
..bbw...
..b.....
........
........
e
- 4.8k
- 1
- 22
- 49