15 puzzle solver: Difference between revisions

Content added Content deleted
(Realize in C++)
Line 18:
{{trans|FSharp}}
<lang cpp>
// Solve Random 15 Puzzles : Nigel Galloway - October 11th., 2017
const int Nr[]{3,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3}, Nc[]{3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2};
using N = std::tuple<int,int,unsigned long,std::string,bool,int>;
Line 102:
Solution found with 52 moves: rrrulddluuuldrurdddrullulurrrddldluurddlulurruldrdrd
 
real 0m120m3.414s088s
user 0m120m3.408s078s
sys 0m0.000s008s
</pre>
 
=={{header|F_Sharp|F#}}==
<lang fsharp>