File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -83,15 +83,15 @@ class Maze {
83
83
static create ( settings = { } ) {
84
84
settings . algorithmId = settings . algorithm
85
85
? settings . algorithm . replace ( / [ ^ a - z A - Z 0 - 9 ] / g, "" ) . toLowerCase ( )
86
- : "recursivebacktracker" ;
86
+ : "recursivebacktracker" ;
87
87
88
88
if ( settings . algorithmId === "random" ) {
89
89
settings . algorithmId = Object . keys (
90
90
this . algorithms ,
91
91
) [ Math . floor ( Math . random ( ) * Object . keys ( this . algorithms ) . length ) ] ;
92
- } else if ( settings . algorithmId === "10print" ) {
92
+ } else if ( settings . algorithmId === "10print" ) {
93
93
settings . algorithmId = "tenprint" ;
94
- } else if ( settings . algorithmId === "prims" ) {
94
+ } else if ( settings . algorithmId === "prims" ) {
95
95
settings . algorithmId = "trueprims" ;
96
96
} else if ( ! this . algorithms [ settings . algorithmId ] ) {
97
97
console . warn (
You can’t perform that action at this time.
0 commit comments