This function returns a character vector of how the game ended from chess.dom.

get_game_ending(termination_string, white, black)

Arguments

termination_string

A character vector in the chess.com extracted data frame called 'Termination'

white

A character vector in the chess.com extracted data frame called 'White' for the player on white

black

A character vector in the chess.com extracted data frame called 'Black' for the player on black

Value

A character vector of the game ending for each game

Examples

if (FALSE) {
get_game_ending(termination_string = df$Termination, df$White, df$Black)
}