View source: R/othello_operation.R
check directions
1 2 | chk_one_direction(df, row, col, piece_color, search_color, x, y,
place = T)
|
df |
board |
row |
row of the piece |
col |
col of the piece |
piece_color |
color to check for continuity |
search_color |
color to search |
x |
horizontal direction c(0, 1, -1) |
y |
veritcal direction c(0, 1, -1) |
place |
T for new piece to play, F for pieces to flip |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.