Hi,
I'm writing a tic tac toe game, however I want the logic to be in one class, TicTacToeEngine, and then GUI to be in a separate class, TicTacToeGUI. TicTacToeEngine has a TicTacToeGUI as a variable.
What I want is for the engine to hold the information on the status of the game board and then the engine will call the functions in the GUI to re-draw the board. I want a player to click on the GUI where they want to place their piece and then the GUI will tell the engine what location the player has clicked on.
This is where I am running into problems, however. I can't figure out how to get this message from my TicTacToeGUI to TicTacToeEngine. Does anyone have a suggestion on how to accomplish this?
Thanks!