Talk:Bulls and cows/Player: Difference between revisions

m
moved Talk:Bulls and cows game/Player to Talk:Bulls and cows/Player: To make it a subpage of "Bulls and cows".
(→‎Python ramblings: The algorithm I used, in words.)
 
m (moved Talk:Bulls and cows game/Player to Talk:Bulls and cows/Player: To make it a subpage of "Bulls and cows".)
 
(2 intermediate revisions by 2 users not shown)
Line 3:
 
With possible answers being restricted to a selection of four digits from the nine,
# I generate the ~3K3024 possible initial choices (and randomly shuffle them).
# Select the first choice as my next answer,
# Then get its score.
Line 9:
# Repeat from 2.
If I get all bulls then I win. If there are no more choices then the scores must be inconsistent.<br> --[[User:Paddy3118|Paddy3118]] 02:46, 14 June 2010 (UTC)
 
: My conversion of that code (for the Tcl version) does one key thing differently; instead of shuffling the values it picks a random one. Simpler to implement. –[[User:Dkf|Donal Fellows]] 08:43, 14 June 2010 (UTC)
845

edits