GameState ClassInteraction between the controller and game logic, captures entire game state (board status, player turns, valid moves, game outcomes, etc)
GameState.h
gameBoard 2D array showing board stateselectedColumn and selectedRow indicating player choicesmoveValid, gameOver, turn bools to control gameplayplayMove() Function (Game Logic)Manages piece placement, checks for winners, and toggles between player turns
GameState object after every valid moveconnectfour.cpp (Game Controller)Gathers player inputs, verifies if they are valid, and displays the board in text format