This is a gomoku game I wrote in python. In the game model, players have the choice to play against each other or play against the program, for which I designed artificial-intelligence algorithm to beat human.