Shall We Learn

  • Increase font size
  • Default font size
  • Decrease font size

Lesson4: Tic-Tac-Toe Game Wrap-up

E-mail
Article Index
Lesson4: Tic-Tac-Toe Game Wrap-up
Step 1: Add isGold, isSteel, and isUnclicked to Game Ball Class
Step 2: Add Progress Checking to the Board Class
Step 3: Mark the Winning Line
All Pages


In this lesson, we will make the Board class check the game progress and stop the game once someone has won. I will then introduce the concept of Java Arrays. We will add code to constantly check whether three game balls of the same color has lined up and to mark those winning game balls.






Only registered users can write comments!

!joomlacomment 4.0 Copyright (C) 2009 Compojoom.com . All rights reserved."

Last Updated on Thursday, 28 January 2010 17:43