Bulls and cows/Player: Difference between revisions
Content added Content deleted
m (→{{header|Tcl}}: Noted that this is a translation of the python code) |
(→{{header|Tcl}}: (Hopefully) replaced constant: 4 with variable $size to make things genericc.) |
||
Line 119: | Line 119: | ||
set score [scan [gets stdin] %d,%d] |
set score [scan [gets stdin] %d,%d] |
||
lappend scores $score |
lappend scores $score |
||
if {$score eq { |
if {$score eq {$size 0}} { |
||
puts "Ye-haw!" |
puts "Ye-haw!" |
||
break |
break |