banko in R
banko R package
Go and create your own banko cards or play travebanko with your friends in this hosted version of the package.
The goal of banko is to ease the creation of banko cards and share ideas for for different fun games such as travebanko.
The initial algorithm was inspired from the python package banko
.
Ideas are welcome, but please mind the code of conduct (see below).
To do
Print cards and export as PDFDONEBuild Shiny appDONEHost shiny appDONEStreamline documentation and code
Add some guards and rails for common functions. It is a little rough at the moment.
Different game implementations (
travebankoDONE, others)
Banko is a Danish, special version of bingo, which is nicely implemented in R here.
Installation
You can install the development version of banko from GitHub with:
# install.packages("devtools")
::install_github("agdamsbo/banko") devtools
Example
Create numbers for 5 cards:
library(banko)
cards(5)
Export 20 cards with 5 on each page as pdf, with seed specified at 3425:
cards(20,seed=3425) |>
::map(gg_card) |>
purrrcards_grob() |>
export_pdf(path = "banko.pdf")
To get all necessary materials for a game of travebanko, for 30 participants/groups with 8 stops, run this:
cards(30, 5) |> travebanko(stops = 8) |> export_pdf()
Or even easier, launch the app directly in your browser.
Code of Conduct
Please note that the banko project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.