Solve triangle solitaire puzzle: Difference between revisions

Content added Content deleted
m (syntax highlighting fixup automation)
Line 365: Line 365:


=={{header|EasyLang}}==
=={{header|EasyLang}}==
<syntaxhighlight lang="text">brd$[] = strchars "
<syntaxhighlight lang="text">
brd$[] = strchars "
┏━━━━━━━━━┓
┏━━━━━━━━━┓
┃ · ┃
┃ · ┃
Line 375: Line 376:
func solve . solution$ .
func solve . solution$ .
solution$ = ""
solution$ = ""
for pos range len brd$[]
for pos = 1 to len brd$[]
if brd$[pos] = "●"
if brd$[pos] = "●"
npegs += 1
npegs += 1