lein run
runs a default AI vs AI simulation with an empty board.
In repl (lein repl
), you can play against the AI with the function player
. The game expects you to input the index (0-8) of the square you want to play.
You can simulate AI vs AI with different board states with the play-game
-function. The function takes an initial state and starting turn as parameters. State is given with a string, for example: "???xxo?o?"
Starting turn is an boolean, true on x's turn.
-
Notifications
You must be signed in to change notification settings - Fork 0
Tictactoe AI with minmax and alpha-beta pruning
License
Ajhaa/tictactoe-AI
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Tictactoe AI with minmax and alpha-beta pruning
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published