[Implementation] Connect Four

Hello, I am a G.Y.G.D. developer Wonjohn Choi.

Continuing from the previous “Connect Four” articles, I explain how to do “Implementation” for the traditional game “Connect Four.”

When I first considered how I will implement this game, three things came up in my mind: I need engine, graphic (gui), and sensor (mouse click).

Then, I realized that in engine, I needed to evaluate the status of the game (winning, draw, or playing) and need to calculate the spots where players can put their checkers.

Also, for graphic aka GUI, I wanted to make a simple user interface in which players can see the graphical 7*6 grids.

Finally, for mouse click sensor, I used “MouseListener” built-in interface of Java for each and every 42 sections of the grid to recognize which section is clicked by user.


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: