Object-Oriented Programming · Square · Easy
This coding screen asks you to implement a Connect Four game, built up in three stages. Part 1. Create the game board as a two-dimensional grid and set it to its initial state. Part 2. Model what happens when a player drops a piece into the board. Part 3. Determine whether a player has won. The number of consecutive pieces needed for a win is not fixed at four; it is a configurable value toWin (for instance, toWin could be 5). Only runs along a row (horizontal) or along a…