Slide 17
Slide 17 text
Lab. What about a new version for TicTaeToe
1. Cre
a
te
a
Jfr
a
me
a
nd
a
Jp
a
nel
3. Dr
a
w the 9 boxes to represent the TicT
a
cToe
5. Add MouseListeners to detect clicks on the P
a
nel
7. Review if the click is inside of
a
box
9. If so, dr
a
w
a
nd X or
a
0 on th
a
t position (one time X, the next O, the next X, etc)
Do not worry
a
bout the g
a
me (Tic-T
a
c-Toe) logic, yet.
The go
a
l of this l
a
b is just
a
GUI with listeners
17