Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fracture91/tictactoe
Makes two agents play Tic-Tac-Toe - one human, one AI playing to win, one AI playing to tie, and the last AI being stupid
https://github.com/fracture91/tictactoe
Last synced: about 1 month ago
JSON representation
Makes two agents play Tic-Tac-Toe - one human, one AI playing to win, one AI playing to tie, and the last AI being stupid
- Host: GitHub
- URL: https://github.com/fracture91/tictactoe
- Owner: fracture91
- Created: 2012-02-16T07:14:47.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2012-02-16T07:16:40.000Z (almost 13 years ago)
- Last Synced: 2024-10-21T04:53:03.476Z (2 months ago)
- Language: Java
- Homepage:
- Size: 97.7 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
Awesome Lists containing this project
README
Homework Assignment 2
CS 4341 C12 - Artificial Intelligence
Professor Chernova
Author: Andrew Hurle (andrew.d.hurle)To run
=====
Extract TicTacToe.jar to your working directory
-bash-3.2$ java -jar TicTacToe.jar win simple
-bash-3.2$ java -jar TicTacToe.jar win human
-bash-3.2$ java -jar TicTacToe.jar tie simple
-bash-3.2$ java -jar TicTacToe.jar tie humanPurpose
=====
Pits two agents against each other in a game of tic-tac-toe.
One is human, one is very stupid, and two others use the minimax algorithm to win or tie.Clarifications
=====
The agent given as the first argument is always crosses and always goes first.
The program will actually work with any combination of valid agents, not just the ones required.
The data in the Excel file was found by making two agents play against each other using the same AI.
Node traversal and timing statistics are printed to the console and output file.
Human interface output and errors are not logged to the output file.
Minimax agents are awfully slow for the first move - give it a second.