tidy up output
This commit is contained in:
parent
69784ff0de
commit
d513374a8a
@ -42,6 +42,7 @@ def main
|
|||||||
$stdout.write("\rGrade: #{last_best}, output: #{programs.first.last.execute.inspect} ")
|
$stdout.write("\rGrade: #{last_best}, output: #{programs.first.last.execute.inspect} ")
|
||||||
end
|
end
|
||||||
if programs.first.first == 0
|
if programs.first.first == 0
|
||||||
|
puts
|
||||||
puts "Program found after #{generation} generations:"
|
puts "Program found after #{generation} generations:"
|
||||||
puts programs.first.last
|
puts programs.first.last
|
||||||
break
|
break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user