mazeHTML {mazeGen} | R Documentation |
Generate Elithorn Maze
Description
This function generates an Elithorn Maze
Usage
mazeHTML(rank = 3, satPercent = 0.5, seed = 1, grid = NULL, wd = NULL,
background = "#7abcff", boxBackground = "#66CDAA", fontColour = "white",
Timer = TRUE, concerto = "C5")
Arguments
rank |
This is the Rank of the maze. |
satPercent |
The saturation of the number of black dots created for a given grid. Range between 0-1. |
seed |
To make sure that the randomness of the created black dots is captured and not repeated. |
grid |
is the grid of the maze |
wd |
is the working directory to save the HTML source code in. If not given, the file will be saved in the default working directory. |
background |
The background colour of the page. |
boxBackground |
The background colour of the box. |
fontColour |
The font colour of the instructions. |
Timer |
If True, a time limit of 1 mintues and 30 seconds is given per question. |
concerto |
The code varies between concerto version "C4" and "C5". |
Details
This function creates a maze and is saved into your working directory. A grid object needs to be called out first before runing the maze function. The grid object needs to be the same as the rank given.
Author(s)
Aiden Loe
See Also
Examples
rank <- 3
satPercent <- 0.5
#Grid must be same as rank
grid <- gridThreeUp
#Folder to save html/
#setwd("~/desktop")
#filePath<- getwd()
#Generate item
mazeHTML(rank,satPercent,seed=5,grid = grid,wd=NULL,
background="#7abcff",boxBackground="#66CDAA", fontColour="white ",
Timer=TRUE, concerto="C5")