R package that imports SGF (Smart Game File). Used for Go/Baduk and other board games (emphasis on Go/Baduk).
This package is available in CRAN.
install.packages("Rsgf")
To install the development or GIT repository version, this requires the “devtools” package available in CRAN.
Assuming you don’t already have devtools installed, run the following:
install.packages("devtools")
With devtools installed, it’s fairly simple to install the development branch:
library(devtools)
install_git("https://gitlab.com/BCable/Rsgf.git")
Simple example of Player Card function:
Simple aggregation for heatmap:
agg_games <- aggregate(Game.Number ~ x + y, data=player_data, FUN=length)
names(agg_games) <- c("x", "y", "Count")
agg_games$Count <- as.factor(agg_games$Count)
Graph heatmap:
Extended Player Card and Heatmap Examples:
https://bcable.net/analysis-Rsgf_period_cards.html
https://bcable.net/analysis-Rsgf_moves_anim.html
https://bcable.net/analysis-Rsgf_player_card.html