Solve triangle solitaire puzzle: Difference between revisions

Content added Content deleted
Line 365: Line 365:


=={{header|EasyLang}}==
=={{header|EasyLang}}==
<lang>brd$[] = str_chars "
<lang>brd$[] = strchars "
┏━━━━━━━━━┓
┏━━━━━━━━━┓
┃ · ┃
┃ · ┃
Line 388: Line 388:
brd$[pos + 2 * dir] = "·"
brd$[pos + 2 * dir] = "·"
if solution$ <> ""
if solution$ <> ""
solution$ = str_join brd$[] & solution$
solution$ = strjoin brd$[] & solution$
break 3
break 3
.
.
Line 396: Line 396:
.
.
if npegs = 1
if npegs = 1
solution$ = str_join brd$[]
solution$ = strjoin brd$[]
.
.
.
.