File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 33 [int ]$Order = 5 ,
44 [double ]$Angle = 90
55)
6- $this.L (' A' , @ {
6+
7+
8+ return $this.L (' A' , @ {
79 A = ' +BF-AFA-FB+'
810 B = ' -AF+BFB+FA-'
911}, $Order , @ {
1012 ' F' = { $this.Forward ($Size ) }
1113 ' \+' = { $this.Rotate ($Angle ) }
1214 ' \-' = { $this.Rotate ($Angle * -1 ) }
1315})
14- return $this
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ foreach ($iteration in 1..$n) {
3232}
3333
3434$finalState = $currentState
35- foreach ($character in $finalState.ToCharArray ()) {
35+ $null = foreach ($character in $finalState.ToCharArray ()) {
3636 foreach ($key in $Variable.Keys ) {
3737 if ($character -match $key ) {
3838 $action = $Variable [$key ]
Original file line number Diff line number Diff line change 33 [int ]$Order = 2 ,
44 [double ]$Angle = 120
55)
6- $this.L (' F-G-G' , [Ordered ]@ {
6+ return $this.L (' F-G-G' , [Ordered ]@ {
77 F = ' F-G+F+G-F'
88 G = ' GG'
99}, $Order , [Ordered ]@ {
1010 ' \+' = { $this.Rotate ($Angle ) }
1111 ' -' = { $this.Rotate ($Angle * -1 ) }
1212 ' [FG]' = { $this.Forward ($Size ) }
1313})
14- return $this
Original file line number Diff line number Diff line change 11param ([double ]$Size = 50 )
2- foreach ($n in 1 .. 4 ) {
2+ $null = foreach ($n in 1 .. 4 ) {
33 $this.Forward ($Size )
44 $this.Rotate (90 )
55}
You can’t perform that action at this time.
0 commit comments