updateEdges: Updates available edges counters.

Description Usage Arguments Value Examples

View source: R/makeMoves.R

Description

Updates available edges counters.

Usage

1
updateEdges(id, pattern = rep(-1L, 4), add = TRUE)

Arguments

id

An integer, a number of a piece.

pattern

A vector c(U, R, D, L) - pattern of a piece.

add

Logical (default TRUE), update edges after adding or removing piece from the board.

Value

Invisible: Updated usedEdges

Examples

1
2
3
4
## Not run: 
updateEdges(9)

## End(Not run)

gchlapinski/EternityII documentation built on Jan. 21, 2018, 12:53 a.m.