next up previous
Next: About this document ... Up: Failure-based reasoning Previous: Summary

Failure database

The failure database, as implemented in our system, is a simple text file. For the purposes of example, Figure 5 shows the first three failures from the failure database in the experiment where 1,000 games of tic-tac-toe were played.

Figure 5: Sample failure database
\begin{figure}\par
\begin{quote}
\par
\begin{verbatim}862 failures
O to play
...
...o play
X X
O O
(1,1)\end{verbatim}
\par
\end{quote}\par\par
\end{figure}

The first line of the failure database specifies the number of failures in the failure database. Then for each failure in the failure database, a unique tic-tac-toe board is specified along with the coordinates of the move which lead to failure in the specified tic-tac-toe board, $(y, x)$. The coordinates are in $(row, column)$ format, where $y, x \in ${$0, 1, 2$}. A unique tic-tac-toe board is specified first by the player, 'X' or 'O,' whose turn it is to move, and then by the tic-tac-toe board itself. The entire file or failure database, in our implementation, is a plain text file.



James Riechel 2007-12-12
Hosted by www.Geocities.ws

1