Skip to content

Instantly share code, notes, and snippets.

@mazikwyry
Created October 25, 2012 11:14
Show Gist options
  • Save mazikwyry/3952044 to your computer and use it in GitHub Desktop.
Save mazikwyry/3952044 to your computer and use it in GitHub Desktop.
Finish pitches algorythm
if cf_min_reached? and ci_min_reached?
if pitch_goal_reached?
#Combination is successful
else
if cf_goal_reached?
#CF is successful
elsif ci_goal_reached?
#CI is successful
else
#All fails
end
end
elsif cf_min_reached?
if cf_goal_reached?
#CF is successful
else
#All fails
end
elsif ci_min_reached?
if ci_goal_reached?
#CI is successful
else
#All fails
end
else
All fails
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment