Question: [JAVA GUI Connect Four] Connect Four game is played on a vertical board which has seven hollow columns and six rows (Grid). Each square is
[JAVA GUI Connect Four] Connect Four game is played on a vertical board which has seven hollow columns and six rows (Grid). Each square is a button so when the user clicks one depending on if they are x or o then the button would mark down x or o The aim for both players is to make a straight line of four own pieces; the line can be vertical, horizontal or diagonal. How the game goes on Before starting, players decide randomly which of them will be the beginner; moves are made alternatively, one by turn. The winner is the first player who gets a straight line made with four own pieces and no gaps between them. Therefore, in this homework assignment, we are going to create the Connect Four game described above using GUI. In this homework, you can be creative with your game as well for extra points.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
