15 puzzle solver: Difference between revisions
Content added Content deleted
(Realize in C++) |
m (→{{header|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
user
sys 0m0.
</pre>
=={{header|F_Sharp|F#}}==
<lang fsharp>
|