TTT(6) BSD TTT(6)
NAME
ttt - tic-tac-toe
SYNOPSIS
/usr/games/ttt
DESCRIPTION
ttt is the popular X and O game, but it is also a learning program that
never makes the same mistake twice.
When you begin, the program prompts you with
Accumulated knowledge? ( Yes or No )
You must respond with a yes or no. The program tells you how many
"words" of knowledge it currently has in its learning file. Then ttt
states whether or not this is a new game, prints a three-by-three grid of
numbers 1-9, and prompts with "Your move?" as shown below:
new game
123
456
789
Your move?
As you specify numbers in the grid, the program places an "X" in the
location where the number once was. After you move, the program takes a
turn, placing an "O" in an available spot. This continues until either
you or the program wins by creating a vertical, horizontal, or diagonal
line of three of the same characters in a row on the grid. To exit the
game, type an interrupt.
Although it learns, ttt learns slowly. It must lose nearly 80 games to
completely know the game.
FILES
/usr/games/lib/ttt.a learning file