3D Othello

I wanted to know what kind of game Othello would be in 3 dimensions. OpenGL is made for answering these questions. After playing with it a little, I decided it was interesting enough to put up on the Net.

The game is Othello on a 6x6x6 board. The game starts with 4 stones of each color on the board, in the center of the space. Small white outlines show where new stones may be played. The cursor position is moved with the vi keys (plus i and m), in uppercase. P passes and space places a stone. I know it's not very intuitive. The same keys in lowercase move the view around. g turns on a grid (you play on the vertices) and q quits.

On the command line, you can turn on computer players with
-1 c1
-2 c3
etc. The first number is player 1 or player 2, the second is a code for the computer player algorithm: c1 (random) takes a move at random, c2 (greedy) takes the move that flips the most stones, and c3 (wallflower) takes the "edgiest" move it can, flipping the most stones in case of a tie.

(So to make the random mover play against the wallflower, type
othello -1 c1 -2 c3

Below are links to the source (c, requires OpenGL and GLUT) and to an executable for Win32 boxes with OpenGL.

Win32 executable

Please share and enjoy. Comments and suggestions are welcome. dmm@suberic.net

output of othello -h:

Usage: othello [-1 (c1|c2|c3|h)] [-2 (c1|c2|c3|h)]
                 ^player 1  cpu players^--^--^ ^human(default)
    View: h/l = spin left/right
          i/m = tilt up/down
          k/j = zoom in/out
    Move: H/L = move west/east
          I/M = move up/down
          K/J = move north/south
          P = pass    space = place stone
    Xtra: q = quit    g = toggle grid

Last modified June 5 1998 by Denis Moskowitz.