Bulls and cows/Player: Difference between revisions

Content added Content deleted
No edit summary
m (disambiguate link)
Line 1: Line 1:
{{task|Games}}
{{task|Games}}


The task is to write a ''player'' of the [[Bulls and Cows game]], rather than a scorer. The player should give intermediate answers that respect the scores to previous attempts.
The task is to write a ''player'' of the [[Bulls and cows|Bulls and Cows game]], rather than a scorer. The player should give intermediate answers that respect the scores to previous attempts.


=={{header|Python}}==
=={{header|Python}}==
<lang python>
<lang python>from itertools import permutations
from itertools import permutations
from random import shuffle
from random import shuffle