Solve triangle solitaire puzzle: Difference between revisions
Content added Content deleted
Line 365: | Line 365: | ||
=={{header|EasyLang}}== |
=={{header|EasyLang}}== |
||
<lang>global nc brd$[] . |
<lang>global nc brd$[] solution$ . |
||
# |
# |
||
func init . . |
func init . . |
||
Line 410: | Line 410: | ||
res = 0 |
res = 0 |
||
if solved = 1 or n_tees = 1 |
if solved = 1 or n_tees = 1 |
||
solution$ = str_join brd$[] & solution$ |
|||
res = 1 |
res = 1 |
||
. |
. |
||
. |
. |
||
call solve res |
call solve res |
||
print solution$ |
|||
# |
# |
||
input_data |
input_data |