posted 7 years ago
Hey everyone, so I made a terminal based Connect 4 game, that works fairly well. (at least for what I want it to do) I'm trying to build a GUI for it, but I'm having some problems.
This is the code I've got for my connect 4 game so far, for your reference...
So, my ultimate goal is to have this logic translated into a GUI. My plan is to have a button for each column, and translate the button push into the necessary input. I have the buttons mostly figured out, but my real issue here is displaying the game board. I want to display the gameboard as a grid of white circles, that turn red and black when they are selected. That's the one thing I can't seem to find any information on how to do.
This is what I have for the GUI so far...
So far, the only thing I have is the six buttons, and they are not tied to anything other than a system.out to see if they work. I'm wanting to display the "gameboard" underneath the six buttons, and have the console output of my connect 4 game translated into the GUI.