Description Usage Arguments Value Examples
Check which positions will win
1 | check_win(board, target = 1, n = 4)
|
board |
The board matrix |
target |
Integer: What player id do you want. |
n |
Integer: Connect-n (usually 4) |
A vector of will win flags in each slot
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.