The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

Title: Play a Game of 2048 in the Console
Version: 0.2.1
Description: Generates a game of 2048 that can be played in the console. Supports grids of arbitrary sizes, undoing the last move, and resuming a game that was exited during the current session.
License: MIT + file LICENSE
URL: https://github.com/rossellhayes/twenty48
BugReports: https://github.com/rossellhayes/twenty48/issues
Depends: R (≥ 2.10)
Imports: crayon, R6, rstudioapi
Encoding: UTF-8
RoxygenNote: 7.2.1
NeedsCompilation: no
Packaged: 2022-09-13 02:17:04 UTC; alex
Author: Alexander Rossell Hayes ORCID iD [aut, cre, cph]
Maintainer: Alexander Rossell Hayes <alexander@rossellhayes.com>
Repository: CRAN
Date/Publication: 2022-09-13 02:30:02 UTC

twenty48: Play a Game of 2048 in the Console

Description

logo

Generates a game of 2048 that can be played in the console. Supports grids of arbitrary sizes, undoing the last move, and resuming a game that was exited during the current session.

Author(s)

Maintainer: Alexander Rossell Hayes alexander@rossellhayes.com (ORCID) [copyright holder]

See Also

Useful links:


Play 2048 in the console

Description

Interact with the game by typing commands into the console and pressing enter.

Usage

play_2048(size = 4, dynamic = rstudioapi::isAvailable())

resume_2048()

Arguments

size

An integer giving the grid's dimensions. Defaults to 4, which generates a 4-by-4 grid.

dynamic

If dynamic is TRUE, commands can be input without pressing enter, creating a more seamless game experience. Note that dynamic commands currently only work in RStudio.

Value

Generates an interactive game of 2048 in the console.

Examples

play_2048()
play_2048(size = 5)

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.