๐ฎ It is a two-player connection game in which the players first choose a color and then take turns dropping one colored disc from the top into a seven-column, six-row vertically suspended grid. The pieces fall straight down, occupying the lowest available space within the column, user wins by forming row of four of same color
There is some issue in the code of game:undo.
Test case: Upon starting the game,play 3 moves and then press Ctrl+Z twice. Firstly only one disc is removed when it should have been 2 and secondly the turn is of the wrong person.
This issue can be further exploited in lots of ways to make theoretically impossible game configurations.
More than 2 players can play the game at the same time with the same rules.In other words, the number of players is also generalized.For example, there may be 3 players red,blue and green each aiming to achieve 4 in a row on the same board.