How to drop a piece into Connect4 board?
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.