Methods
label_free_columns(board) → {Array.<number>}
- Source:
This helper function takes a board, and for each column, returns either
the column's index if it has free slots, or -1
if it is full.
Parameters:
Name | Type | Description |
---|---|---|
board |
Connect4.Board | The board to label. |
Returns:
Array containing the column index if free or -1
if full
- Type
- Array.<number>