Tic-Tac-Toe

This project was created by Nate in about 4 hours using Scratch. There are many other tic-tac-toe games like this on the Scratch website..

Pseudo-Code

Pseudo Code for this project goes as follows:

  • Start Game
    • What does game look like?
    • Draw Board
      • What character / effects will draw board?
      • Board Color?
      • Draw board on paper
  • Do Until Winner or Tie
    • X selects square
    • Check Winner or Tie
    • O selects square
    • Check Winner or Tie
  • How does player decide square? Drag and drop? Keyboard?
  • How to Check Winner or Tie?
    • How to detect where X and O are?
    • Check for colors?
    • When X or O Moves, we record where they move?
  
  Check Winner Or Tie
  O selects square
  Check Winner Or Tie
End
If O Wins
  Say "O Wins"
If X Wins
  Say "X Wins"
Else
  Say "Tie Game!"
End

Download

Download the Scratch Tic-Tac-Toe Game

See Also

Other Scratch Workshop Projects

Programming Mentorship Ideas %2008/%05/%14 %09:%May nate
Scratch Zoom Project %2007/%09/%16 %23:%Sep nate
 
scratch_tic_tac_toe.txt · Last modified: 2008/04/29 12:34 by nate
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki