A vertical win for Red
You enter
- Moves
- Red 1, Black 2, Red 1, Black 2, Red 1, Black 2, Red 1
You get
- Winner
- Red
- Moves
- 7
- Message
- Red wins!
Columns are counted 1 to 7 from the left. Red stacks four discs in column 1 while Black stacks three in column 2. Red's fourth disc completes the line on move 7, and the board stops accepting clicks.
Run through the tool’s own code.