本文へスキップ
からだにいいもの

Rのトピックスを中心に『まだ、まだ、知らない、役に立つ情報?』を発信します。

Analysis in R: Want to take a break from Minesweeper? The “fun” package

How about a break from analysis? This package contains interactive games of the Japanese GOMOKU-NARABE and Minesweeper. Note that Minesweeper in particular can be addictive.

Package version is 0.3. Checked with R version 4.2.2.

Install Package

Run the following command.

#Install Package
install.packages("fun")
スポンサーリンク

Example

See the command and package help for details.

#Loading the library
library("fun")

#GOMOKU-NARABE: gomoku command
gomoku(n = 19)

#Minesweeper: mine_sweeper command
if (.Platform$OS.type == "windows")
  x11() else x11(type = "Xlib")
mine_sweeper()

#Create PASSWORD: random_password comannd
random_password()
[1] "H<97)r\\@'mq\""

#Result Hanoi puzzle: tower_of_hanoi command
tower_of_hanoi(n = 3)

Output Example

・gomoku command

gomoku

・mine_sweeper command

mine_sweeper

I hope this makes your analysis a little easier !!

スポンサーリンク
価格および配送状況は変更される場合があります。購入時は商品ページをご確認ください。
当サイトに表示されている商品情報はAmazonから提供されたものであり、更新または削除される場合があります。
karada-goodはAmazonアソシエイトとして、適格販売により収入を得ています。