Skip to content

Adding Graphical User Interface (#2)#3

Open
ironsigma wants to merge 3 commits intoCubixPro:masterfrom
ironsigma:master
Open

Adding Graphical User Interface (#2)#3
ironsigma wants to merge 3 commits intoCubixPro:masterfrom
ironsigma:master

Conversation

@ironsigma
Copy link

Added a very basic user interface (TicTacToeGui.java) you can run this and it will create a BoardPanel.java class that takes care of all the graphics and clicks.

I had to make one minor change to your code. Took the code that creates the game board array and put it into a function so I can call it from the graphical interface.

But the graphic interface uses your code to keep track of the pieces, and do game win/draw checks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments