[Implementation] Tic-Tac-Toe

Tic-Tac-Toe Screenshot

Tic-Tac-Toe Screenshot

Hello, I am developer Wonjohn Choi.

Implementation is done and the left image is one of the screenshots.

As I discussed on [Design] Tic-Tac-Toe article, I used ‘O’ and ‘X’ to mark areas and used Java built-in methods to create the grid.

There are two main files that consist of this application:

  • Engine.java: This part of the program manages the general logics. It has ability to calculate whether the game is ended (victory, loss, draw) or is in progress. Also, it keeps track of the checkers using a virtual 2D array. Finally, it can reset itself when the game is restarted.
  • GUI.java: This part of the program manages the general GUI stuff. It constructs each and every graphical stuff to assist users. It uses information from Engine.java class to represent the checkers. It also pops up message screens to notice users when the game ends and to ask whether they want to restart.

As I commented on the source files thoroughly to explain each and every aspect of the program, I recommend you to look at the files for better understanding.


About Wonjohn Choi
Hello, I am a software developer Wonjohn Choi. I live in Mississauga, Ontario, Canada and study at a school called St. Francis Xavier Secondary School. My core interests include Math, Computer Science, and Engineering. Thank you.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: