Inspired by an article about e-Valuate, a two-player, zero-sum, sequential, perfect information game an arithmetic expressions, this project is started.
The goals for this project are two fold.
- Use python.
- Study alpha-beta pruning
Make sure to add the current project to the PYTHONPATH
. I usually do this by execute the following command.
export PYTHONPATH=.
Run all the test by executing the command:
python evaluate/test/test_all.py
You can determine the optimal value for an expression and domain by using the evaluate
executable.
for example
> bin/evaluate "A-B" 4
If instead you want to play the game for an expression and domain use play
> bin/evaluate "A-B" 4