posted 7 years ago
Hello all,
Our assignment is to make a version of the classic 'Connect Four' game, where we need to construct a GUI that shows the current state of the game and instead of having a winner once a player has four chips in a row, the game needs to continue until no chips can be placed anymore.
We currently get stuck in the GUI part. Running it right now results in a board with empty spaces only. Also after choosing a column to place, the board remains empty.
Our question: How do we get the board filled with the right color of chips at the right place?
We know the 'ArcsPanel'-class (almost at the bottom of the code) is wrong, but we don't know what to do to make it right.
Main class 'ConnectPanel':
Class 'Chip':
Class 'Player':
Thank you for your time!
P.S.: At the moment, only the colors white, red and blue are used. This is purely for finding out how to work in general.