Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static void place(int column, int value)
- {
- int pos = 5; //sets the lowest possible index to 5
- column--; //converts the input column to an index
- while (pos>0 && board[pos][column] != 0) //keep going down until you hit something that's not 0
- {
- pos--;
- }
- board[pos][column] = value;
- //System.out.println("The lowest position is: " + pos);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement