Solve triangle solitaire puzzle: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) m (syntax highlighting fixup automation) |
|||
Line 365: | Line 365: | ||
=={{header|EasyLang}}== |
=={{header|EasyLang}}== |
||
<syntaxhighlight lang="text"> |
<syntaxhighlight lang="text"> |
||
brd$[] = strchars " |
|||
┏━━━━━━━━━┓ |
┏━━━━━━━━━┓ |
||
┃ · ┃ |
┃ · ┃ |
||
Line 375: | Line 376: | ||
func solve . solution$ . |
func solve . solution$ . |
||
solution$ = "" |
solution$ = "" |
||
for pos |
for pos = 1 to len brd$[] |
||
if brd$[pos] = "●" |
if brd$[pos] = "●" |
||
npegs += 1 |
npegs += 1 |