Bulls and cows: Difference between revisions
Content added Content deleted
(→{{header|AppleScript}}: Add implementation.) |
m (→{{header|AppleScript}}: typo) |
||
Line 188: | Line 188: | ||
repeat |
repeat |
||
set theMessage to "" |
set theMessage to "" |
||
repeat with aGuess in |
repeat with aGuess in pastGuesses |
||
set {theGuess, theResult} to aGuess |
set {theGuess, theResult} to aGuess |
||
set theMessage to theMessage & theGuess & ":" & bulls of theResult & "B, " & cows of theResult & "C" & linefeed |
set theMessage to theMessage & theGuess & ":" & bulls of theResult & "B, " & cows of theResult & "C" & linefeed |