However, it's commonly accepted that the Battle of Midway was largely decided by luck. Through code-breaking, the United States was able to get vital information about the Japanese war preparations, giving them a big advantage in the conflict. The American strikes were successful because of timing, weather, and pure luck, but luck also played a factor in the destruction of the Japanese carriers. Strategic planning, intelligence collection, and, yes, a little bit of luck were all factors in the American triumph at the battle of Midway, which is regarded as one of the pivotal moments of the Pacific War.