eminarican / tictac

tictactoe ai implementation using minimax with αβ-pruning

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tictac

simple tictactoe game uses minimax
algorithm with alpha beta pruning for pvc mode

##################################################
#                                                #
#                                                #
#                                                #
#                                                #
#                                                #
#                                                #
#                                                #
#                                                #
#        welcome to the tic tac toe game         #
#        set your setting and press enter        #
#                                                #
#        selected game mode: (pvp/pvc)           #
#                                                #
#        1: play with using ai                   #
#        2: play without using ai                #
#                                                #
#        a: change color to yellow               #
#        b: change color to green                #
#        c: change color to blue                 #
#                                                #
#        (press a button above or enter)         #
#                                                #
#                                                #
#                                                #
#                                                #
#                                                #
#                                                #
#                                                #
##################################################
##################################################
#                                                #
#                                                #
#                                                #
#                                                #
#                                                #
#                     X O X                      #
#                                                #
#          Player 1 (X) - Computer (O)           #
#                                                #
#                 |     |     |                  #
#              a  |  b  |  c  |  d               #
#            _____|_____|_____|_____             #
#                 |     |     |                  #
#              e  |  f  |  g  |  h               #
#            _____|_____|_____|_____             #
#                 |     |     |                  #
#              i  |  j  |  k  |  l               #
#            _____|_____|_____|_____             #
#                 |     |     |                  #
#              m  |  n  |  o  |  p               #
#                 |     |     |                  #
#                                                #
#            Player 1 select a cell              #
#                                                #
#                                                #
#                                                #
#                                                #
#                                                #
##################################################

About

tictactoe ai implementation using minimax with αβ-pruning

License:GNU General Public License v3.0


Languages

Language:C 98.2%Language:CMake 1.8%