Bad guys and good guys constantly come up with plans to achieve their goals, especially in action movies and heist movies. But often if you think about the plan a little, you realize they're often terrible plans that made little sense. The writers want you to think these plans are brilliant, but they only worked out because the plot says so.
They all too often rely too much on luck, things going exactly as planned, enemies acting exactly like they need to, and predicting things they couldn't have possibly been able to predict. It's especially bad when the plan relies on getting captured by the enemy.
What are some notable examples of terrible movie plans?