Learn R Programming

networkGen (version 0.1.1)

nodeLogic: Node Logic

Description

This function generates the node logic for circuit (9 item family) or trail (6 item family) type maze. Please refer to details for more information

Usage

nodeLogic(value, type, itemFamily)

Arguments

value

seed value

type

select either 'circuit' or 'trail' type network maze.

itemFamily

There are 9 item family for circuit and 6 item family for trail type network maze.

Details

Currently, there are 9 item families for circuit type items and 6 item families for trail type mazes. They are by no means based on increasing difficulty. This is based on the uniquness of each pattern.

Circuit (radical 1). 2 Same even number nodes

  • Item Family 1: In total 4 moves

  • Item Family 2: In total 8 moves

  • Item Family 3: In total 12 Moves

  • Item Family 4: In total 16 of moves

Circuit (radical 2). Different even number nodes

  • Item Family 5: In total 6 moves. 1 node with 4 edges (Sample Item 2).

  • Item Family 6: In total 9 moves. 2 nodes with 4 edges

  • Item Family 7: In total 12 moves. 3 nodes with 4 edges

  • Item Family 8: In total 15 moves. 1 node with 6 edges, 2 nodes with 4 edges, the rest with 2 edges

  • Item Family 9: In total 12 moves. 1 node with 6 edges, 1 node with 4 edges, the rest with 2 edges.

Trail. Same uneven number of nodes

  • Item Family 1: In total 6 moves

  • Item Family 2: In total 10 moves

  • Item Family 3: In total 14 moves

  • Item Family 4: In total 9 moves

  • Item Family 5: In total 13 moves

  • Item Family 6: In total 10 move

Examples

Run this code
# NOT RUN {
nodeLogic(value = 1, type= "circuit", itemFamily= 1)

# }

Run the code above in your browser using DataLab