Android Open Source - Game ai TicTacToe-app






Project Summary

This is a TicTacToe app, written for Android. There are two modes to this app: PvP and PvE (person versus environment/computer). The PvE AI uses a minimax alpha-beta pruning algorithm, borrowed from another website (see code comments for details). The AI is programmed in such a way so that it will never lose (try it if you don't believe me ;])..

Web Site / Source Repository

TicTacToe-app is hosted in the following web site
https://github.com/alex-sh-wu/TicTacToe-app

If you think the Android project TicTacToe-app listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Project Detail

The following table is the detailed list of TicTacToe-app.

ItemValue
Java File Count7
Activity Count3




Resource Files

There are 11 image files in TicTacToe-app. The names of the image files are listed as follows.

button_grey.png
pieceo.png
pieceo_grey.png
pieceo_greybackground.png
piecex.png
piecex_grey.png
piecex_greybackground.png
pve.png
pve_grey.png
pvp.png
pvp_grey.png

The following screenshort is generated from the image listed above.

null




Java Source Files

TicTacToe-app has the following Java source files.

com.example.tictactoe.app.MenuScreen.java
gameboard.PVP.java
gameboard.UtilityClass.java
gamemodeselect.OpponentSelection.java
tictactoe.AI.AIPlayer.java
tictactoe.AI.AIPlayerMinimax.java
tictactoe.AI.AIPlayerTableLookup.java