Not the cleanest code (I would have used dtmc if the corresponding toolbox was available, and I should definitively improve the code quality itself and vectorize it a little bit)
The problem was fun, thanks :-)
Oleksandr Denysenko, you get no credit for hacking the problem. Only legitimate solutions gain credit.
Persistence pays off! :-)
Back to basics 9 - Indexed References
397 Solvers
633 Solvers
"Cody" * 5 == "CodyCodyCodyCodyCody"
195 Solvers
Is this a valid Tic Tac Toe State?
105 Solvers
145 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!