Bulls and cows/Player: Difference between revisions

Content added Content deleted
imported>Algol68G
No edit summary
imported>Algol68G
Line 253: Line 253:
The sequence you thought has to be: 8 3 9 5</pre>
The sequence you thought has to be: 8 3 9 5</pre>
=={{header|ALGOL 68}}==
=={{header|ALGOL 68}}==
<syntaxhighlight lang="ALGOL 68">
<syntaxhighlight lang="algol68">
# This breaks a unique code of `n' pegs and `m' colours you think of. #
# This breaks a unique code of `n' pegs and `m' colours you think of. #


Line 329: Line 329:
Solution is 6 5 4 3
Solution is 6 5 4 3
</pre>
</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)