Learn R Programming

bigchess (version 1.9.1)

n_moves: Compute number of moves

Description

Compute total number of moves given movetext string (or string vector)

Usage

n_moves(movetext)

Arguments

movetext

movetext string (or string vector)

Value

n integer (or integer vector)

Examples

Run this code
# NOT RUN {
n_moves(c("1. e4 e5 2. Nf3 Nf5 3. d5 ","1. d4 d5"))
# 3 1
# }

Run the code above in your browser using DataLab