|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Minimal Negamax example: solve Tic-Tac-Toe from the empty board. More...
Go to the source code of this file.
Functions | |
| int | main () |
Minimal Negamax example: solve Tic-Tac-Toe from the empty board.
This is the simplest possible adversarial-search example. It defines a Tic-Tac-Toe domain, runs plain Negamax without transposition tables, iterative deepening or move ordering, and prints the game-theoretic value and the principal variation.
For advanced features (TT, iterative deepening, aspiration windows, move ordering, tracing) see negamax_tictactoe_example.cc.
Build and run:
cmake --build build --target negamax_simple_example./build/Examples/negamax_simple_example Definition in file negamax_simple_example.cc.
| int main | ( | ) |
Definition at line 157 of file negamax_simple_example.cc.
References Aleph::divide_and_conquer_partition_dp(), and root().