Gomoku Game (Main Flow)

Learn to create a generalized tic-tac-toe game by dividing it into subparts in the form of the main flow of the game.

We’ve all played tic-tac-toe at least once in our lives. Our typical tic-tac-toe game has a 3x3 grid. There are two players, and each player selects a symbol. Whichever player gets their symbols placed consecutively in a row, either vertically, horizontally, or diagonally, wins the game.

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy