Solve triangle solitaire puzzle: Difference between revisions

m
No edit summary
Tags: Mobile edit Mobile web edit
m (→‎{{header|Wren}}: Minor tidy)
(2 intermediate revisions by one other user not shown)
Line 386:
brd$[pos + dir] = "·"
brd$[pos + 2 * dir] = "●"
call solve solution$
brd$[pos] = "●"
brd$[pos + dir] = "●"
Line 392:
if solution$ <> ""
solution$ = strjoin brd$[] & solution$
break 3return
.
.
Line 402:
.
.
call solve solution$
print solution$
</syntaxhighlight>
Line 3,488:
{{trans|Kotlin}}
{{libheader|Wren-fmt}}
<syntaxhighlight lang="ecmascriptwren">import "./fmt" for Conv, Fmt
 
var board = List.filled(16, true)
9,485

edits