#include <stdlib.h>#include <time.h>#include <stdio.h>Include dependency graph for ttt.c:

Go to the source code of this file.
Data Structures | |
| struct | MOVE |
Defines | |
| #define | printw printf |
Functions | |
| _PROTOTYPE (int main,(void)) | |
| _PROTOTYPE (int stateval,(int board[], int whosemove)) | |
| _PROTOTYPE (MOVE alphabeta,(int board[], int whosemove, int alpha, int beta)) | |
| _PROTOTYPE (void draw,(int board[])) | |
| _PROTOTYPE (int endofgame,(int board[])) | |
| int | stateval (board, int whosemove) |
| MOVE | alphabeta (board, int whosemove, int alpha, int beta) |
| void | draw (board) |
| void | getmove (board) |
| int | endofgame (board) |
| int | randommove () |
| int | main () |
|
|
Definition at line 27 of file ttt.c. Referenced by draw(), endofgame(), getmove(), main(), PrintMove(), WriteCommand(), WriteLetters(), and WriteLine(). |
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||||||||||
|
Definition at line 87 of file ttt.c. References i, result, stateval(), and MOVE::value. Referenced by main(). |
|
|
|
|
|
Definition at line 192 of file ttt.c. References count, eval(), move, printw, and stateval(). Referenced by main(). |
|
|
Definition at line 165 of file ttt.c. References draw, move, printw, refresh, and scanf(). Referenced by main(). |
|
|
Definition at line 233 of file ttt.c. References alphabeta(), clear, draw, endofgame(), endwin(), getmove(), i, initscr(), move, MOVE::path, printw, randommove(), refresh, and scanf(). |
|
|
Definition at line 224 of file ttt.c. Referenced by main(). |
|
||||||||||||
|
Definition at line 52 of file ttt.c. Referenced by alphabeta(), and endofgame(). |
1.4.6