Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Encoding: UTF-8
Package: ppdf
Type: Package
Title: Board Game Setups
Version: 0.3.0-19
Version: 0.3.0-20
Authors@R: c(person("Trevor L.", "Davis", role=c("aut", "cre"),
email="trevor.l.davis@gmail.com",
comment = c(ORCID = "0000-0001-6341-4639")))
Expand Down
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,12 @@ export(games_piecepack)
export(games_stackpack)
export(go_bits)
export(go_board)
export(go_connect6)
export(go_games)
export(go_go)
export(go_gomoku)
export(go_none)
export(go_renju)
export(go_setup_by_name)
export(go_suit)
export(marble_bits)
Expand Down
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ New features
+ `domino_freecell()`
+ `domino_the_sultan()`

* The following functions generate data frames to setup go sets (#62):

+ `go_connect6()`
+ `go_renju()`

* The following functions generate data frames to setup piecepack sets (#23, #35, #40, #49, #50):

+ `piecepack_achi()`
Expand Down
20 changes: 20 additions & 0 deletions R/go.R
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ go_games_variant <- function() {
, ~methods
, ~comment
, ~url
, "Connect6"
, "``go_connect6()``"
, NA_character_
, "https://en.wikipedia.org/wiki/Connect6"
, "Go"
, "``go_go()``"
, NA_character_
Expand All @@ -109,13 +113,23 @@ go_games_variant <- function() {
, "``go_gomoku()``"
, NA_character_
, "https://en.wikipedia.org/wiki/Gomoku"
, "Renju"
, "``go_renju()``"
, NA_character_
, "https://en.wikipedia.org/wiki/Renju"
)
}

#' @rdname go_games_variant
#' @param nrows Number of rows (lines) in game board
#' @param ncols Number of columns (lines) in game board
#' @export
go_connect6 <- function(nrows = 19L, ncols = nrows) {
go_board(nrows, ncols)
}

#' @rdname go_games_variant
#' @export
go_go <- function(nrows = 19L, ncols = nrows) {
go_board(nrows, ncols)
}
Expand All @@ -125,3 +139,9 @@ go_go <- function(nrows = 19L, ncols = nrows) {
go_gomoku <- function(nrows = 15L, ncols = nrows) {
go_board(nrows, ncols)
}

#' @rdname go_games_variant
#' @export
go_renju <- function(nrows = 15L, ncols = nrows) {
go_board(nrows, ncols)
}
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ animate_game(game, file = "man/figures/README-relativity.gif",

### <a name="checkers">Checkers Sets</a>

`{ppdf}` supports the following 33 games playable with a (possibly non-8x8) checkers set:
`{ppdf}` supports the following 34 games playable with a (possibly non-8x8) checkers set:

* [(American) Checkers AKA (English) Draughts](https://en.wikipedia.org/wiki/Draughts)
* [American Pool Checkers](https://draughts.github.io/american-pool-checkers.html)
Expand All @@ -190,6 +190,7 @@ animate_game(game, file = "man/figures/README-relativity.gif",
* [International Checkers AKA International Draughts](https://en.wikipedia.org/wiki/International_draughts)
* [Italian Checkers AKA Italian Draughts](https://en.wikipedia.org/wiki/Italian_draughts)
* [Jamaican Checkers AKA Jamaican Draughts](https://web.archive.org/web/20230605023244/http://poolcheckers.com/jamaica/)
* [Jeson Mor](https://en.wikipedia.org/wiki/Jeson_Mor)
* [Jul-Gonu](https://en.wikipedia.org/wiki/Jul-Gonu)
* [Kangaroo](https://boardgamegeek.com/boardgame/6132/kangaroo-the-jumping-game)
* [Lasca](http://www.lasca.org)
Expand All @@ -206,11 +207,12 @@ animate_game(game, file = "man/figures/README-relativity.gif",

### <a name="chess">Chess Sets</a>

`{ppdf}` supports the following 5 games playable with a (possibly non-8x8) chess set:
`{ppdf}` supports the following 6 games playable with a (possibly non-8x8) chess set:

* [Fischer Random Chess AKA Chess960](https://www.chessvariants.com/diffsetup.dir/fischer.html)
* [Horde Chess](https://lichess.org/variant/horde)
* [(International) Chess](https://en.wikipedia.org/wiki/Chess)
* [Jeson Mor](https://en.wikipedia.org/wiki/Jeson_Mor)
* [Monochrome Chess](https://wunderland.com/WTS/Andy/Games/monochess.html)
* [Racing Kings](https://www.chessvariants.com/diffobjective.dir/racing.html)

Expand All @@ -231,7 +233,7 @@ animate_game(game, file = "man/figures/README-relativity.gif",

### <a name="piecepack">Piecepacks</a>

`{ppdf}` supports the following 114 games playable with a piecepack deck (plus possibly additional components):
`{ppdf}` supports the following 115 games playable with a piecepack deck (plus possibly additional components):

* [12345ive!](https://boardgamegeek.com/boardgame/154644/12345ive)
* [Achi](https://en.wikipedia.org/wiki/Achi_(game))
Expand Down Expand Up @@ -286,6 +288,7 @@ animate_game(game, file = "man/figures/README-relativity.gif",
* [Italian Checkers AKA Italian Draughts](https://en.wikipedia.org/wiki/Italian_draughts)
* [Jamaican Checkers AKA Jamaican Draughts](https://web.archive.org/web/20230605023244/http://poolcheckers.com/jamaica/)
* [Japan](https://www.ludism.org/ppwiki/Japan)
* [Jeson Mor](https://en.wikipedia.org/wiki/Jeson_Mor)
* [Jul-Gonu](https://www.ludism.org/ppwiki/JulGonu)
* [Kangaroo](https://boardgamegeek.com/boardgame/6132/kangaroo-the-jumping-game)
* [King's Valley](https://www.logygames.com/english/kingsvalley.html)
Expand Down Expand Up @@ -355,10 +358,12 @@ animate_game(game, file = "man/figures/README-relativity.gif",
* [Alquerque](https://en.wikipedia.org/wiki/Alquerque)
* [Bagh-chal](https://en.wikipedia.org/wiki/Bagh-chal)

`{ppdf}` supports the following 2 games playable with a go set
`{ppdf}` supports the following 4 games playable with a go set

* [Connect6](https://en.wikipedia.org/wiki/Connect6)
* [Go](https://en.wikipedia.org/wiki/Go_(game))
* [Gomoku](https://en.wikipedia.org/wiki/Gomoku)
* [Renju](https://en.wikipedia.org/wiki/Renju)

`{ppdf}` supports the following 7 games playable with a morris set

Expand Down
10 changes: 9 additions & 1 deletion man/go_games_variant.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading