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

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

Analysis in R: No break? “sudokuAlt” package, which creates NUMBER PLACE

This is an introduction to the ”sudokuAlt” package, which allows you to create highly addictive ‘number places’. Note that the larger the game size, the more computer processing power is needed to create it.

Package version is 0.2-1. Checked with R version 4.2.2.

Install Package

Run the following command.

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

Example

See the command and package help for details.

#Loading the library
library("sudokuAlt")

#Games downloaded from "http://www.sudoku.com.au/":fetchAUGame command
#difficulty option:"easy", "medium", "hard", "tough"
FAUGame <- fetchAUGame(1, "tough")
#Play Game
plot(originalGame(FAUGame))
#Show answer
plot(solve(FAUGame))

#Make a game:makeGame command
#n optin:Specify game size: default 3
MGame <- makeGame(n = 3)
#Game calculation, the larger the game size, the longer the calculation time
MGame <- solve(MGame)
#Play Game
plot(originalGame(MGame))
#Show answer
plot(solve(MGame))

Output Example

fetchAUGame command

・Play game

numberplace

・Show answer

numberplace2

I hope this makes your analysis a little easier !!

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