Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not follow the flow after a loop #12

Open
gmgp opened this issue Dec 11, 2020 · 0 comments
Open

Not follow the flow after a loop #12

gmgp opened this issue Dec 11, 2020 · 0 comments

Comments

@gmgp
Copy link

gmgp commented Dec 11, 2020

Hi and tanks for the work

if project.blocked?  
  problems.each do |i| 
    eat(:donuts)
    solve(i)
  end
else
  sleep
end

puts 'ok'

the result is

graph

the same without the if

problems.each{|i| 
  eat(:donuts)
  solve(i)
}
puts 'ok'

graph (1)

with some hint i can try to make a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant