Solve triangle solitaire puzzle: Difference between revisions

m
Line 365:
 
=={{header|EasyLang}}==
<lang>global brd$[] solution$= str_chars ."┏━━━━━━━━━┓
┃ · ┃
#
┃ ● ● ┃
func init . .
┃ ● ● ● ┃
repeat
┃ ● ● ● ● ┃
s$ = input
┃● ● ● ● ●┃
until s$ = ""
┗━━━━━━━━━┛
brd$ &= s$ & "\n"
"
.
solution$ = ""
brd$[] = str_chars brd$
.
call init
#
func try_move pos dir . res .
Line 415 ⟶ 413:
call solve res
print solution$
#
input_data
┏━━━━━━━━━┓
┃ · ┃
┃ ● ● ┃
┃ ● ● ● ┃
┃ ● ● ● ● ┃
┃● ● ● ● ●┃
┗━━━━━━━━━┛
</lang>
 
2,054

edits