chk_one_direction: check directions

Description Usage Arguments

View source: R/othello_operation.R

Description

check directions

Usage

1
2
chk_one_direction(df, row, col, piece_color, search_color, x, y,
  place = T)

Arguments

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


Atan1988/rothello documentation built on May 28, 2019, 8:57 p.m.