Difference between revisions of "Wind"

From Worms Knowledge Base

Jump to: navigation, search
m (i was really, really bored)
m (Wind generation)
Line 20: Line 20:
 
Tests reveal two things about how the wind is generated:
 
Tests reveal two things about how the wind is generated:
  
* The wind will never be the same for two consecutive turns (this is unfalsifiable, but statistically probable). This is the only piece of evidence to suggest that the wind for any given turn is in any way influenced by the wind generated for the previous turn.
+
* The wind will never be the same for two consecutive turns. This is unfalsifiable, but statistically probable - for 50 consecutive turns, there is a 91% chance that the wind will be the same for two consecutive turns on at least one occasion. Since this did not happen in the one test for it, it can be said with at least 91% certainty that the game's code prevents it from happening. This is the only piece of evidence to suggest that the wind for any given turn is in any way influenced by the wind generated for the previous turn.
  
 
* The direction and strength of the wind generated for a given turn is influenced by the position of the active worm at the start of that turn (this has been confirmed by Deadcode and CyberShadow but details remain secret). A worm standing at the far right edge of the map is far more likely to experience a leftward wind, and vice versa.
 
* The direction and strength of the wind generated for a given turn is influenced by the position of the active worm at the start of that turn (this has been confirmed by Deadcode and CyberShadow but details remain secret). A worm standing at the far right edge of the map is far more likely to experience a leftward wind, and vice versa.
Line 32: Line 32:
  
 
But for a worm on the rightmost pixel, the winds are heavily biased in the leftward direction. Blue wind occurs 38 times, and hits maximum strength 20 times. Red wind occurs only 10 times, and never reaches maximum strength.
 
But for a worm on the rightmost pixel, the winds are heavily biased in the leftward direction. Blue wind occurs 38 times, and hits maximum strength 20 times. Red wind occurs only 10 times, and never reaches maximum strength.
 +
 +
Note also that, despite occurring 20 times, the maximum leftward wind strength never occurs consecutively.
 
| width="250px" align="right" | [[Image:Wind1.PNG]]
 
| width="250px" align="right" | [[Image:Wind1.PNG]]
 
|}
 
|}

Revision as of 14:17, 12 August 2008

(Up to Game logic)

This article currently only has information for Worms Armageddon. It is likely that this information also applies to Worms World Party, but this has not been confirmed.

Worms Armageddon

Precise information about the wind and the code behind it is not publically available, but tests reveal a few interesting things about how the wind is generated at the start of each turn, and how it is displayed in the wind indicator.

The wind indicator

The length of the red or blue wind bar in the wind indicator represents the strength of the wind. The longer the bar, the stronger the wind. Although it may appear as though the wind indicator can display a continuous spectrum of lengths, there are in fact only 21 distinct lengths that it will actually display (10 for each direction and 1 for no wind at all). It is possible that the actual wind as applied to the game environment is continuous - or at least has more possible values - and that the wind indicator just displays an approximation, but this is purely speculation. A simple test can be conducted to find out.

In pixels, the complete range of possible lengths for the blue and red wind bars as as follows:

Blue: 7, 14, 22, 29, 37, 45, 52, 60, 67, 75
Red: 6, 14, 21, 29, 44, 52, 67, 74 (two values are likely missing, more tests needed)

Wind generation

Tests reveal two things about how the wind is generated:

  • The wind will never be the same for two consecutive turns. This is unfalsifiable, but statistically probable - for 50 consecutive turns, there is a 91% chance that the wind will be the same for two consecutive turns on at least one occasion. Since this did not happen in the one test for it, it can be said with at least 91% certainty that the game's code prevents it from happening. This is the only piece of evidence to suggest that the wind for any given turn is in any way influenced by the wind generated for the previous turn.
  • The direction and strength of the wind generated for a given turn is influenced by the position of the active worm at the start of that turn (this has been confirmed by Deadcode and CyberShadow but details remain secret). A worm standing at the far right edge of the map is far more likely to experience a leftward wind, and vice versa.


Wind2.PNG In these tests, the wind direction and strength was recorded for 50 consecutive turns for a lone worm standing in a fixed position on a 1920px wide map. On the left, the results are shown for a worm standing in the middle of the map. On the right, results are shown for a worm standing on the rightmost pixel.

For a worm in the middle of the map, the winds are fairly balanced (20 red, 26 blue, 4 no wind).

But for a worm on the rightmost pixel, the winds are heavily biased in the leftward direction. Blue wind occurs 38 times, and hits maximum strength 20 times. Red wind occurs only 10 times, and never reaches maximum strength.

Note also that, despite occurring 20 times, the maximum leftward wind strength never occurs consecutively.

Wind1.PNG
Personal tools