How to Make a Flowchart for Tic-Tac-Toe

Save

A flowchart is a visual representation of a process or system, such as a computer program or an assembly line at an automotive plant. These diagrams consist of standard symbols for each type of step in the process, including actions and decisions. Arrow-headed lines connect the steps to show the possible pathways from one to the next. Flowcharts are used by computer programmers to map software, and in the business and manufacturing industries to understand complex processes. Making a flowchart for a game of tic-tac-toe enables you to learn about the components of a flowchart. (See References 1)

Game Setup

  • Draw a round-edged rectangle at the top of the page, and label it “Start.” This is a terminator symbol.

  • Draw a rectangle below and label it “Draw Tic-tac-toe Grid.” Connect this to the previous rectangle with an arrow pointing down. This is an action symbol.

  • Draw a rectangle below and label it “Assign X and O to Players.” Connect this to the previous rectangle with an arrow pointing down.

  • Draw a rectangle below and label it “Choose Which Player Starts.” Connect this to the previous rectangle with an arrow pointing down.

Player One Moves

  • Draw a rectangle below and label it “Player 1 Moves.” Connect this to the previous rectangle with an arrow pointing down.

  • Draw a rectangle below and label it “Evaluate Board.” Connect this to the previous rectangle with an arrow pointing down.

  • Draw a diamond below and label it “Is the Game Over?” Connect this to the previous rectangle with an arrow pointing down. This is a decision symbol.

Player Two Moves

  • Draw a rectangle below and label it “Player 2 Moves.” Connect this to the previous rectangle with an arrow pointing down. Label this arrow with “No” to represent the answer to the question, “Is the Game Over?”

  • Draw a rectangle below and label it “Evaluate Board.” Connect this to the previous rectangle with an arrow pointing down.

  • Draw a diamond below and label it “Is the Game Over?” Connect this to the previous rectangle with an arrow pointing down.

  • Draw an arrow from the “Is the Game Over?” diamond to the arrow leading to the “Player 1 Moves” rectangle, and label it “No.”

End Game

  • Draw a rectangle below the second “Is the Game Over?” diamond, and label it “Congratulate Winner.”

  • Draw two arrows to this rectangle, one from the right side of each “Is the Game Over?” diamond, and label them “Yes” to represent the answer.

  • Draw a round-edged rectangle at the bottom of the page and label it “End.” Connect this to the previous rectangle with an arrow pointing down. This is also a terminator symbol.

Related Searches

References

  • Photo Credit Stockbyte/Stockbyte/Getty Images
Promoted By Zergnet

Comments

Resources

Related Searches

Check It Out

Geek Vs Geek: Robot battles, hoverboard drag race, and more

M
Is DIY in your DNA? Become part of our maker community.
Submit Your Work!