Bulls and cows/Player: Difference between revisions

Content added Content deleted
imported>Algol68G
No edit summary
imported>Algol68G
No edit summary
Line 321: Line 321:
break code (all combs)
break code (all combs)
</syntaxhighlight>
</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}}==
=={{header|AutoHotkey}}==
<syntaxhighlight lang="ahk">length:=4, i:=0, S:=P(9,length)
<syntaxhighlight lang="ahk">length:=4, i:=0, S:=P(9,length)