How to drop a piece into Connect4 board?

For some reason, it won't re-print the board with the new piece. Is my drop function even right?
https://pastebin.com/7YCWZCZp
Last edited on

1
2
3
4
5
6
            if(board[i][column] == ' ')
            {
                board[i][column] = piece;
                break;
                return i;
            }

The return statement will never be reached because you break right before it.

Also, showing how you're calling drop would be nice information to have.
Topic archived. No new replies allowed.