mazeObject: Generate Elithorn Maze

Description Usage Arguments Details Author(s) See Also Examples

View source: R/mazeObject.R

Description

This function generates the html template of the Elithorn Maze in an R object.

Usage

1
2
3
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

mazeAbility, mazeDiff, np

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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")

Aidenloe/mazeGen documentation built on May 5, 2019, 1:34 p.m.