mazeHTML: Generate Elithorn Maze

Description Usage Arguments Details Author(s) See Also Examples

Description

This function generates an Elithorn Maze

Usage

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

mazeAbility, mazeDiff, np

Examples

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

mazeGen documentation built on May 2, 2019, 6:34 a.m.