Anonymous user
Bulls and cows/Player: Difference between revisions
no edit summary
imported>Algol68G No edit summary |
imported>Algol68G No edit summary |
||
Line 321:
break code (all combs)
</syntaxhighlight>
Output:
<pre>
1 2 3 4 cc
2 1 5 6 cc
3 4 6 5 cccc
5 6 4 3 ccbb
Solution is 6 5 4 3
</pre>
=={{header|AutoHotkey}}==
<syntaxhighlight lang="ahk">length:=4, i:=0, S:=P(9,length)
|