Question: In Connect - 4 , two players play a gravity assisted game with a grid board where they take turns dropping their colored piece into

In Connect-4, two players play a gravity assisted game with a grid board where they take turns dropping their colored piece into one of the remaining open columns. The piece falls to the bottom of the column or stops on top of the pile of pieces in the column. To win a typical game, the first player with 4 pieces in a row wins. The most well-known North American version of this game is a blue board with red and yellow pieces, however we will use a yellow board with red and blue pieces.
We will be implementing a flexible version of the game well call Connect-L. The user will be able to play the base game on the regular 6 rows and 7 column board size, but also able to play on sizes with rows and columns between 4 and 8 in size. For example, 4 x 8 is a valid game, and so is 7 by 5. The user will also be able to select the length of pieces in a row needed. This length with be within the limits of 3 long, all the way up to 7 in a row.
The largest change to the game is that instead of just connecting pieces in a row we will be looking for an L-shape where at one end of the line of pieces there will be at least one piece perpendicular to the end of the line. For example. If the win length for how long the line needs to be is 3 then below are some win options. Reminder in a game board the must always be pieces underneath any piece not at the bottom of a column.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!