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:
library(Rsgf)
<- Rsgf::playerCard("Honinbo Shusaku", "~/GoGoDSpring2018/1850-99") player_data
Simple aggregation for heatmap:
<- aggregate(Game.Number ~ x + y, data=player_data, FUN=length)
agg_games names(agg_games) <- c("x", "y", "Count")
$Count <- as.factor(agg_games$Count) agg_games
Graph heatmap:
::boardHeatMap(agg_games) Rsgf
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