mazeObject {mazeGen} | R Documentation |
Generate Elithorn Maze
Description
This function generates the html template of the Elithorn Maze in an R object.
Usage
mazeObject(rank = 3, satPercent = 0.5, seed = 1, grid = 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 |
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 4 mintues is given per question. |
concerto |
The code varies between concerto version "C4" and "C5". |
Details
This function creates a plot with the maze blueprint 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
#Generate item
mazeObject(rank,satPercent,seed=5,grid = grid,
background="#7abcff",boxBackground="#66CDAA", fontColour="white ",
Timer=TRUE, concerto="C5")
[Package mazeGen version 0.1.3 Index]