Reverse Engineering
|
Computing mode
Glossary (avec min maj pour lexique ? Land Auction ou land auction ?)
Selling land
+ Credits
+ Easter eggs / Unknown
+ Cheats
corriger accords: lands auctions -> land auction (voire land auctions car sinon pas de pluriel visibles o_O (good ratings) + accor dverbe pluriel)
ordre des chapitres pour expliquer:
C (utilisé par B)
B (utilisé par A)
A
ou
A
B
C
- finir les liens + back links:
A->B (classique)
B utilisé par A
Table of contents
Introduction
MULE version
The MULE version, used as a basis for this document, is a dump of the game for Atari 800 system in ATR format whose checksum is F76D2896.
Time unit
Base Time Unit (BTU)
1 jiffy is the time elapsed between two VBL (Vertical Blank Line). The event processor of MULE is called each 4 jiffy. This is the Base Time Unit (BTU). According to the system in which the game runs (PAL or NTSC), a jiffy hasn't the same duration because there isn't the same amount of VBL each second and so the time between 2 VBL is different.
The duration of 1 BTU for each system is:
System | Frequency | 1 jiffy | 1 BTU (= 4 jiffy) |
PAL | 50 Hz | 1/50s | 1/12.5s = 0.08s |
NTSC | 60 Hz | 1/60s | 1/15s = 0.067s |
That means that a PAL game runs more slowly than a NTSC game (if the game uses the VBL to synchronize motion).
In this whole document, the reference system is NTSC. The following value will thus be used:
1 BTU = 1/15s = 0.067s
The BTU is used in the game for:
-
The Player Time Unit (PTU) determines the rate of the time flow during the humans players turn. 1 pixel of the bar time lasts 1 PTU. It thus decreases of 1 pixel each PTU. The smaller the PTU is, the faster the time decreases.
Initialy, the value of a PTU is equal to 7 BTU and modified by the following conditions:
1 PTU = 7 BTU + modifiers
The race modifiers are:
Race | Modifier |
Flapper | +2 BTU |
Human | -2 BTU |
Others | None |
The level modifiers are:
Level | Modifier |
Beginner | +2 BTU |
Standard | None |
Tournament | None |
Some examples of PTU for race and level choice:
Description | PTU (in BTU) | PTU (in second) |
Beginner with Flapper | 11 BTU | 0.73s |
Standard or Tournament with Flapper | 9 BTU | 0.6s |
Standard or Tournament with any race but Flapper or Human | 7 BTU | 0.47s |
Standard or Tournament with Human | 5 BTU | 0.33s |
In the whole document, a default value of 1 PTU = 7 BTU = 7/15s = 0.47s is used when no value for the PTU is specified. This gives an indicative information in seconds for the examples.
The PTU is used in the game for:
-
Similarly to the PTU, the Auction Time Unit (ATU) determines the rate of time flow during the auctions. 1 pixel of the bar time lasts 1 ATU. It thus decreases of 1 pixel each ATU. The smaller the ATU is, the faster the time decreases.
The value of the ATU is based on the BTU and only dependent of the level:
Level | ATU (in BTU) | ATU (in second) | ATU/4 (in second) |
Beginner (*) | 50 BTU | 3.33s | 0.83s |
Standard | 30 BTU | 2s | 0.5s |
Tournament | 25 BTU | 1.67s | 0.42s |
(*) At Beginner level, the value of the ATU is doubled for first round (100 BTU).
When no player moves, the value of the ATU is temporarily divided by 4, until a player moves again.
-
Similarly to the PTU, the Cursor Time Unit (CTU) determines the rate of time flow during the land grant. The cursor moves to the next land at each CTU. The smaller the CTU is, the faster the cursor moves.
The value of the CTU is based on the BTU and only dependent of the level:
Level | CTU (in BTU) | CTU (in second) |
Beginner | 8 BTU | 0.53s |
Standard | 4 BTU | 0.27s |
Tournament | 3 BTU | 0.2s |
Computing mode
Type de calcul | Signification | Phase |
A: réel | On ne simule rien. On possède la parcelle et l'exploitation. | Production, Price |
B: simulé | On possède la parcelle et on y simule la présence de l'exploitation donnée. | Player Turn |
C: simulé | On ne possède pas la parcelle. On simule la présence de la parcelle et de l'exploitation. | Grant Land Land Auction |
Glossary
Shortage, requirement, critical level, surplus...
- Map
- Plot (terre) une des 45 cases (dont store, river, ...)
- Land (parcelle)
- Exploitation
- River
- Turn
- Round
- Player (joueur humain)
- Player (joueur ordinateur) WIP
- Human
- Store
- Capacité de production d'une exp (avec ecos)
- Production de base d'une terre
Game setting
Number of rounds
The number of rounds at each level is:
Beginner | 6 |
Standard | 12 |
Tournament | 12 |
Before the first round starts (at the first status summary when the ship lands), the round number is #0. It's incremented at the beginning of the round.
Map generation
The map is divided in 5 rows of 9 columns. There's 44 lands (30 plains, 10 with at least 1 moutain, 4 rivers) and 1 Store in the middle. The location of the mountains and the Crystite deposits are randomly chosen (see algorithms Mountains setup andCrystite deposits setup).
-
This algorithm divides each row in 4 quarter (4 small rows). The map having 5 rows, there's a total of 20 quarters.
The picture bellow shows this division:

The following rules are always applied for the mountains distribution:
- each row has 2 groups of mountains, each on a river side
- each row has exactly 4 mountains (one in each quarter).
- each group has at least 1 mountain, at the most 3 mountains
The distribution of the mountains on each row is as follows:
- 2 lands are randomly chosen on the row, one on the left side, the other on the right side of the river. The 2 groups of moutains are located on these 2 lands.
- On each quarter of the row, a mountain is randomly put either on the left or on the right group. If a mountain is added to a group already having 3 mountains, it's moved to the other group on the same quarter of the row.
-
mettre ., L, M, H, V ?
4 Crystite deposits of quality 3 (High) are randomly put on 4 lands among the 44 lands and the Store. A deposit can thus be located on a plain, a moutain, a river or the Store.
Each deposit (in black) is then expanded like a star shape:
. . L . .
. L M L .
L M H M L
. L M L .
. . L . .
If a deposit expansion overlaps another one, the highest qualities are kept:
. . L . . .
. L M L L .
L M H M M L
. L M M H M L .
. . L L M L . .
. . . . L . . .
A Crystite deposit of quality 4 (Very high) appears only after a meteorite strike (and no expansion is done).
-
The Crystite is ignored in these enumerations.
To compute the number of distinct maps, without taking into account the configurations of a land which are visually different but having the same production (for example one mountain at each quarter give the same production), the configurations are enumerated for 1 row:
- with 1 mountain on the left, 3 mountains on the right: 16 configurations
- with 2 mountains on the left, 2 mountains on the right: 16 configurations
- with 3 mountains on the left, 1 mountain on the right: 16 configurations
That's 16+16+16=48 configurations for 1 row and a total of 48^5 = 254 803 968 configurations for the 5 rows of the map (each configuration hasn't the same probability to occur).
The number of distinct maps, taking into account the configurations of a land which are visually different but giving the same production, are:
- with 1 mountain on the left, 3 mountains on the right: 64 configurations
- with 2 mountains on the left, 2 mountains on the right: 96 configurations
- with 3 mountains on the left, 1 mountain on the right: 64 configurations
That's 64+96+64=224 configurations for 1 row and a total of 224^5 = 563 949 338 624 configurations for the 5 rows of the map (each configuration hasn't the same probability to occur).
-
-
All the players begin with an equal quantity of goods, which depends of the level:
Level | Food | Energy | Smithore & Crystite |
Beginner | 8 | 4 | 0 |
Standard | 4 | 2 | 0 |
Tournament | 4 | 2 | 0 |
-
Human players begin with an amount of money depending of their race:
Race | Money |
Flapper | 1600$ |
Human | 600$ |
Others | 1000$ |
Computer players begin with an amount of money depending of the level:
Level | Money |
Beginner | 1000$ |
Standard | 1000$ |
Tournament | 1200$ |
Store setup
-
The Store initial quantities are depending of the level:
Level | Beginner | Standard & Tournament |
Food | 16 | 8 |
Energy | 16 | 8 |
Smithore | 0 | 8 |
Crystite | 0 | 0 |
Mule | 25 | 14 |
-
The Store initial prices are depending of the level:
Food | 30$ |
Energy | 25$ |
Smithore | 50$ |
Crystite | 100$ |
Mule | 100$ |
Game rounds
Round initialization
At the beginning of each round, the following actions are done:
At the Beginner level, the Store initializes:
- the quantity of Smithore to 0
- the quantity of mules to 25
That's why the Smithore price is constant at 50$ for this level (no Shortage).
Lands grant
-
The cursor is moving at a speed of 1 land each CTU. When a land is selected by a player, a pause of 4 CTU is done.
-
Each computer use its own map of lands rating to determin the land he'll select during the land grant.
The map contains the rating of the available lands, taking into accounts the exploitations owned (the economic bonuses raise the rating) and the distance to the Store. The map doesn't specify for which types of exploitation the ratings are given.
The stages of the algorithm, for 1 computer map, are:
-
To select the best land during the land auction, the computers analyse their map of lands rating:
- for each land of the map (from the start if not specified)
- the final rating of the land is computed withdrawing the following penality:
- no penality if the land is among the 3 first rows
- -1 if the land is on the fourth row
- -2 if the land is on the last row
- if no land has already been selected, the new land is selected
- if a land has been already selected and the result is better than the final rating of the selected land, there's a 25% probability the new land is selected (and thus 75% to keep the last selected land)
-
At the beginning of the land grant, the computers think of the land they will select. Each one:
If 2 computers have chosen the same land and there's at least 4 available lands, the computer having the better rank select another one. This is repeated until all computers have chosen a different land.
During the land selection, the computers simulate a button click as soon as the cursor attains the land they've chosen. If several players simultaneously click, the one having the worst rank wins the land and all the concerned computers choose another best land among their map from the next cursor position.
Lands auctions
-
At the Beginning level, there's no land auctions.
The number of colony land auctions is limited by the number of lands still available and equal to the normal distribution of 1 with an amplitude of:
- 1 for the Standard level
- 2 for the Tournament level
This gives the following probabilities:
Plots for sale | Standard | Tournament |
0 | 16.168% | 31.126% |
1 | 67.664% | 37.748% |
2 | 16.063% | 24.303% |
3 | 0.105% | 6.248% |
4 | 0% | 0.562% |
5 | 0% | 0.013% |
-
At a land auction, each computer computes his rating of the land for sale in the following way:
- the computer good ratings are set to:
Good | Rating |
Food | 3 |
Energy | 2 |
Smithore | 6 |
Crystite | 12.5+round/2 |
- the land rating is equal to the best exploitation rating (without the bonus because of a shortage) whose could be installed on the land if the computer owned it
- a random value between 0 and 7 is added to the rating
- the rating is finally multiplied by the number of rounds left (thus the rating is null at the last round)
-
There's two kinds of land auction set, that occur in the following order:
- player land auction set: composed of the lands put for sale by the players
- Colony land auction set: composed of the random lands put for sale by the Colony
The scheme is the same in both cases:
- for each auction in the set:
- the increment is 4$ per pixel
- the available time is 70 ATU
- each computer compute his land auction rating
- the selling price at the beginning of the auction is:
- for the first auction of the game: equal to 160$
- for the first auction of the set: equal to the average selling price of the previous land auction set deduced by 60$
- for the others auctions of the set: equal to the previous land auction deduced by 60$
- the selling price at the end of the auction is:
- if there's a buyer: equal to high bid
- if not: equal to the bid start divided by 2 and incremented by 52$ (bid start/2 + 52$)
- he land auction set is ended when all the lands are sold or when a Colony land hasn't been bought
- the average price is computed using the selling price at the end of each auction
-
TODO
Players turn
-
The player Food requirement for the current and the next round is:
Round | Food requirement (for current round) | Next Food requirement (for next round) |
1 | 3 | 3 |
2 | 3 | 3 |
3 | 3 | 3 |
4 | 3 | 4 |
5 | 4 | 4 |
6 | 4 | 4 |
7 | 4 | 4 |
8 | 4 | 5 |
9 | 5 | 5 |
10 | 5 | 5 |
11 | 5 | 5 |
12 | 5 | 0 |
-
The players take their turn in the order of their rank. If there's 7 or less mules in the Store, the order is reversed to help last ranked players.
-
-
At the beginning of each player turn, there's a 27.5% probability an event appends. In this case, one among the 22 is randomly chosen until it complies to the following rules:
- an event appends only one time in the game
- a good event never occurs to the first ranked player
- a bad event never occurs to the 2 last ranked players
- certain events require a particular condition
If none of the events complies to the rules, nothing happens.
The event is automatically changed to the first of the list if:
- a valid event has already been chosen
- the player has no Food unit
- the player is not first ranked
-
The following variables are used in the player event effect chart:
- m is the price multiplicative factor of the round (given by the chart below)
- x is the event multiplicative factor (strength of the event)
- y is the player multiplicative factor (number of elements concerned)
The price multiplicative factor m is equal to 25$*(round/4+1):
Round | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
m | 25 | 25 | 25 | 50 | 50 | 50 | 50 | 75 | 75 | 75 | 75 | 100 |
Player event effect chart:
| Type | x | Condition | Event |
Good | | | | YOU JUST RECEIVED A PACKAGE FROM YOUR HOME-WORLD RELATIVES CONTAINING 3 FOOD AND 2 ENERGY UNITS. The player wins 3 Food units and 2 Energy units. |
| | | A WANDERING SPACE TRAVELER REPAID YOUR HOSPITALITY BY LEAVING TWO BARS OF SMITHORE. The player wins 2 Smithore units. |
A | 2 | At least 1 exploitation | YOUR MULE WAS JUDGED "BEST BUILT" AT THE COLONY FAIR. YOU WON $?. The player wins 2*m $. |
A | 4 | At least 1 exploitation | YOUR MULE WON THE COLONY TAP-DANCING CONTEST. YOU COLLECTED $?. The player wins 4*m $. |
B | 2 | At least 1 exploitation of Food | THE COLONY COUNCIL FOR AGRICULTURE AWARDED YOU $? FOR EACH FOOD PLOT YOU HAVE DEVELOPED. THE TOTAL GRANT IS $?. The player wins 2*m*y $. |
A | 4 | | THE COLONY AWARDED YOU $? FOR STOPPING THE WART WORM INFESTATION. The player wins 4*m $. |
A | 8 | | THE MUSEUM BOUGHT YOUR ANTIQUE PERSONAL COMPUTER FOR $?. The player wins 8*m $. |
A | 2 | | YOU WON THE COLONY SWAMP EEL EATING CONTEST AND COLLECTED $?. (YUCK!) The player wins 2*m $. |
A | 3 | | A CHARITY FROM YOUR HOME-WORLD TOOK PITY ON YOU AND SENT $?. The player wins 3*m $. |
A | 6 | | YOUR OFFWORLD INVESTMENTS IN ARTIFICIAL DUMBNESS PAID $? IN DIVIDENDS. The player wins 6*m $. |
A | 4 | | A DISTANT RELATIVE DIED AND LEFT YOU A VAST FORTUNE. BUT AFTER TAXES YOU ONLY GOT $?. The player wins 4*m $. |
A | 2 | | YOU FOUND A DEAD MOOSE RAT AND SOLD THE HIDE FOR $?. The player wins 2*m $. |
| | At least 1 available land | YOU RECEIVED AN EXTRA PLOT OF LAND TO ENCOURAGE COLONY DEVELOPMENT. The player wins a random free land. |
Bad | | | | MISCHIEVOUS GLAC-ELVES BROKE INTO YOUR STORAGE SHED AND STOLE HALF YOUR FOOD. The player loses half his Food units. |
A | 3 | At least 1 exploitation | ONE OF YOUR MULES LOST A BOLT. REPAIRS COST YOU $?. The player loses 3*m $. |
B | 2 | At least 1 exploitation of Smithore or Crystite | YOUR MINING MULES HAVE DETERIORATED FROM HEAVY USE AND COST $? EACH TO REPAIR. THE TOTAL COST IS $?. The player loses 2*m*y $. |
B | 1 | At least 1 exploitation of Energy | THE SOLAR COLLECTORS ON YOUR ENERGY MULES ARE DIRTY. CLEANING COST YOU $? EACH FOR A TOTAL OF $?. The player loses 1*m*y $. |
A | 6 | | YOUR SPACE GYPSY INLAWS MADE A MESS OF THE TOWN. IT COST YOU $? TO CLEAN IT UP. The player loses 6*m $. |
A | 4 | | FLYING CAT-BUGS ATE THE ROOF OFF YOUR HOUSE. REPAIRS COST $?. The player loses 4*m $. |
A | 4 | | YOU LOST $? BETTING ON THE TWO-LEGGED KAZINGA RACES. The player loses 4*m $. |
A | 4 | | YOUR CHILD WAS BITTEN BY A BAT LIZARD AND THE HOSPITAL BILL COST YOU $?. The player loses 4*m $. |
| | At least 1 plot | YOU LOST A PLOT OF LAND BECAUSE THE CLAIM WAS NOT RECORDED. The player loses his last land from the map. |
The exact formula which gives the amount won or lost is:
-
The available time for the turn depends of the quantity of Food the player has compared to the round requirement.
The formula is: 10 PTU (4.67s) + 91 PTU (42.47s) * ratio
The ratio is: Food units owned by the player divided by Food units required for the round (maximum of 100%)
This gives the following cases:
Case | Time limits |
No shortage | 101 PTU (47.13s) |
Partial shortage | 10 + 91*ratio PTU ]4.67s; 47.13s[ |
Total shortage | 10 PTU (4.67s) |
-
The outfit prices are:
Food | 25$ |
Energy | 50$ |
Smithore | 75$ |
Crystite | 100$ |
-
To interact with a land (Assay, to install a mule, ...), the player must be located inside a zone smaller than the land:
The mule position during the interaction doesn't have any importance. Only the position of the player does matter.
-
TODO:
mise en vente -> temps arrêté, continuera dès retour ou après 250 BTU
-
-
The Wampus is a mysterious creature hidden into the mountains.

It appears on the screen as a colored point on one of the 20 mountains.
This color depends of the game level:
Level | Beginner | Standard | Tournament |
Wampus Color |  |  |  |
-
The Wampus is only catchable when:
- the point is visible
- the player is at the exact location (there's only one for each mountain)
The exact player position (the green pixel) must be the following, according to the Wampus position (between red lines):
The vertical Wampus position is located 4 pixels below the vertical player position:
According to the horizontal Wampus position, two cases can happen. In both, the horizontal Wampus position is on the left of the player:
The Wampus is:
- never visible when the player is dragging a mule.
- only catchable one time for each player turn.
-
The Wampus only appears after an initial delay Tw (in PTU). This delay is proportional to Ta (in BTU), which is the waited time before the player press the button to play is turn (event included). The maximum value of Ta is 255 BTU (17s).
For example, if the player waits 10s before clicking:
Ta = 10s = 10/(1/15) BTU = 150 BTU (10s)
If a player event occurs, Ta is deduced by 100 BTU (6.7s). Thus, the maximum value of Ta is 155 BTU (10.3s).
The delay Tw (in PTU), before the Wampus appears, is equal to Ta divided by 4.
Example 1:
- the player play with Flapper at level Standard: 1 PTU = 7+2 BTU = 0.6s
- the player waits 3s before clicking (no event occurs):
- Ta = 3s = 3/(1/15) BTU = 45 BTU
- Tw = 45/4 PTU = 11 PTU = 11*0.6s = 6.6s
Example 2:
- the player play with Human at level Tournament: 1 PTU = 7-2 BTU = 0.33s
- the player waits 12.1s before clicking (an event occurs):
- Ta = 12.1/(1/15) BTU - 100 BTU = 81 BTU
- Tw = 81/4 PTU = 20 PTU = 20*0.33s = 6.6s
We can see the Wampus appears after the same initial delay. This can seem strange at first glance because the Flapper waits lesser than the Human, but it's in fact completely normal:
- the Wampus appears after 11 PTU for the Flapper and 20 PTU for the Human
- the value of the PTU isn't the same for the 2 players: 0.6s for the Flapper and 0.33s for the Human, thus the time decreases faster for the Human than for the Flapper
- the Flapper has more time to play his turn (101 PTU = 60.6s) than the Human (101 PTU = 33.67s), thus in seeing the ratio "initial delay" with "time available", the Human is more penalized than the Flapper
To sum up:
- Without event, Ta has a maximum of 255 BTU (17s), so Tw has a maximum of 255/4 PTU = 63 PTU = 29.4s, what is rather big
- With an event, Ta has a maximum of 155 BTU (10.3s), so Tw has a maximum of 155/4 PTU = 38 PTU = 17.73s
To have the maximum time to catch the Wampus (and therefore it appears as soon as possible), the player must click quickly at the beginning of his turn. If an event occurs, the player has 6.7 free seconds to read it.
-
After the initial delay, the Wampus behavior switch over 2 states:
Thus, if the Wampus isn't appeared again at 2 PTU (0.93s), it won't move (case 1).
Be aware, if the player stays on any mountain (in collision), when the Wampus is switching to the visible state, it will hide again instantaneously and switch to the hidden state.
-
if the player succeeds to catch the Wampus, he wins a sum of money equal to 100$ * (round+4)/4:
Round | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
Cash | 100 | 100 | 100 | 200 | 200 | 200 | 200 | 300 | 300 | 300 | 300 | 400 |
-
At the end of his turn, the player can go to the Pub for Gambling and wins some cash. The quantity is equal to the round gambling bonus added by a value between 0$ and two times the amount of time left (in PTU):
Cash = round bonus + random value [0; temps restant*2[
The final amount has a maximum of 250$.
Example:
Round #3, 30% remaining time (30 PTU), the Gambling value will be between 50$ and 110$ (50$ + random (101*30/100*2).
-
The computer turn AI is splitted in 3 chronological parts:
- Phase 1: Development
- Phase 2: Assay
- Phase 3: Gambling
-
The Development phase loops through the following algorithm:
- if the remaining time is less than 35 PTU (16.33s), next phase
- computation of the good rating for 2 rounds
- for each player land (from the end):
- if the land has already been processed this turn, next land
- if the land hasn't any exploitation:
- if the Store hasn't any mule, next land
- if the player hasn't enough money to buy a mule, next land
- purchase of a mule
- initialization of its current exploitation rating to 0
- if the land has an exploitation:
- computation of the best exploitation rating (simulated) for this land
- if the best exploitation is of the same type than the current, next land
- computation of the delta between the rating of the best exploitation and the current exploitation
- if the delta is inferior to 3, next land
- if the delta is worst than the best actually memorized, next land
- if the player hasn't enough money to outfit the mule, next land
- memorization of this best choice: land, exploitation and delta
- next land
- if the delta of the best choice is zero, next phase
- process of the best choice:
- purchase of the outfit for the exploitation
- installation of the mule on the land
- mark this land as processed
- decrease of the time by 25+distance*2 PTU
- loop
Comparison of the time used to put an exploitation between a human controlled player and a computer:
- Computer controlled:
- Purchase of the mule and an outfit: 25 PTU (11.67s)
- Installation of the mule: 4 to 20 PTU (1.87s to 9.33s)
- Total time: 29 to 45 PTU (13.53s to 21s)
- Human controlled:
- Purchase of the mule and an outfit: ~22 PTU (~10.27s)
- Installation of the mule: ~4 to ~22 PTU (~1.87s to ~10.27s)
- Total time: ~26 to ~44 PTU (~12.13s to ~20.53s)
Observations:
- the total installation time is roughly the same
- the computer doesn't exchange exploitation between 2 lands, but he doesn't need to go out to take the mule of an exploitation to outfit it again
- the computer can install a maximum of 3 mules
-
The computer doesn't assay any land if:
- the level is Beginner or Standard
- the number of High Crystite is superior to 2
The Assay phase is splitted in 2 stages:
Comparison of the time used to assay between a human controlled player and a computer:
- Computer controlled:
- Assay: 10 PTU (4.67s)
- Move: 4 to 20 PTU (1.87s to 9.33s)
- Total time: 14 to 30 PTU (6.53s to 14s)
- Human controlled:
- Assay: ~5 PTU (~2.33s)
- Move: ~4 to ~22 PTU (~1.87s to ~10.27s)
- Total time: ~9 to ~27 PTU (~4.2s to ~12.6s)
Observations:
- a human controlled player is usually faster than a computer
- the computer doesn't assay the plots for which he knows the supposed value (by deduction) but not the real value
-
If the remaining time is inferior to 3 PTU (1.4s), the computer runs out of time. If not, he goes to the Pub for Gambling.
Production
-
Each Food, Smithore or Crystite exploitation needs one Energy unit to be able to produce. If an exploitation has no Energy unit, it produces 0 units. An Energy exploitation doesn't need any Energy unit to produce.
-
The exploitation base production capacity (EBPC) is used as a basis to compute the EPC.
For Food, Energy and Smithore, the EBPC depends of the terrain type on which it is located:
| Food | Energy | Smithore | Crystite |
Plain | 2 | 3 | 1 | Variable |
River | 4 | 2 | Not allowed | Not allowed |
1 Mountain | 1 | 1 | 2 | Variable |
2 Mountains | 1 | 1 | 3 | Variable |
3 Mountains | 1 | 1 | 4 | Variable |
| Food | Energy | Smithore | Crystite |
Plain |  |  |  |  |
River |  |  |  |  |
1 Mountain |  |  |  |  |
2 Mountains |  |  |  |  |
3 Mountains |  |  |  |  |
For Crystite exploitation, the production relies on the deposit quality of the land:
None | 0 |
Low | 1 |
Medium | 2 |
High | 3 |
Very High | 4 |
The EBPC is shown at the bottom right of the exploitation with points. It's updated at the beginning of the production phase.
-
The exploitation production capacity (EPC) is computed for a player land and an exploitation type. It's used as a basis for the EP.
There's 2 kinds of EPC:
- the real EPC, used by the EP with Energy penalty for the production phase
- the simulated EPC, used by:
- the EP, without Energy penalty, for the land grant AI and player turn AI
- the computer exploitation rating AI for the land grant AI, land auction AI and player turn AI
The real EPC is given by adding the 3 following values:
the EBPC
the 1st economic bonus ("The learning curve theory"): 1 EPC is added for each 3 exploitations of the same type
the 2nd economic bonus ("The economies of scale theory"): 1 EPC is added if at least 1 exploitation of the same type is adjacent
The simulated EPC is similar but the economic bonuses are slightly different, taking into account if the exploitation (eventually the land) isn't already owned. It's given by adding the 3 following values:
the EBPC (or the known Crystite for a Crystite exploitation)
the 1st economic bonus ("The learning curve theory"):
- 1 EPC is added for each 3 exploitations of the same type (the simulated exploitation is counted in the exploitations)
- if the simulated exploitation makes it possible to reach a better economic bonus (than without it), the bonus is added by the number of exploitations already owned of this type (this is the additional production the simulated exploitation would give)
the 2nd economic bonus ("The economies of scale theory"):
- 1 EPC is added if at least 1 exploitation of the same type is contiguous
- if the land is already owned (player turn AI), this bonus has a maximum of 2 EPC
- if not (land grant AI and land auction AI), 2 EPC is added for each land (with or without an exploitation) adjacent to the simulated exploitation (this help the choice of a contiguous land), this bonus has a maximum of 3 EPC
-
The exploitation production (EP) is the number of units produced at the production phase (before the turn event occurs).
There's 2 kinds of EP:
- the real EP, with Energy penalty for the production phase
- the simulated EP, without Energy penalty for the computer good rating AI
The steps to compute the production of all the exploitation are:
Random round event
A random event always occurs after the production phase (even if visually, the event appears before the production like the Acid Rain Storm, Sunspot Activity and Earthquake).
-
At the last game round, the event is the return of the colonial ship. Otherwise, a random event is chosen.
Each event can occur only a limited number of time per game:
Event | Max per game |
Pest Attack | 3 |
Pirate Ship | 2 |
Acid Rain Storm | 3 |
Planetquake | 3 |
Sunspot Activity | 3 |
Meteorite Strike | 2 |
Radiation | 2 |
Fire in Store | 2 |
The probability of an event is equal to the number of time it can still happen divided by the total number of possibilities.
Example 1: round #1
Event | # of time the event may occur until the end of the game | Probability | Percent |
Pest Attack | 3 | 3/20 | 15% |
Pirate Ship | 2 | 2/20 | 10% |
Acid Rain Storm | 3 | 3/20 | 15% |
Planetquake | 3 | 3/20 | 15% |
Sunspot Activity | 3 | 3/20 | 15% |
Meteorite Strike | 2 | 2/20 | 10% |
Radiation | 2 | 2/20 | 10% |
Fire in Store | 2 | 2/20 | 10% |
Total | 20 | 20/20 | 100% |
Exemple 2: Round #3 (event Acid Rain Storm and Meteorite Strike already occured)
Event | # of time the event may occur until the end of the game | Probability | Percent |
Pest Attack | 3 | 3/18 | 16.67% |
Pirate Ship | 2 | 2/18 | 11.11% |
Acid Rain Storm | 2 | 2/18 | 11.11% |
Planetquake | 3 | 3/18 | 16.67% |
Sunspot Activity | 3 | 3/18 | 16.67% |
Meteorite Strike | 1 | 1/18 | 5.55% |
Radiation | 2 | 2/18 | 11.11% |
Fire in Store | 2 | 2/18 | 11.11% |
Total | 18 | 18/18 | 100% |
By enumerating the possibilities, the following exact probabilities can be computed:
Event | Never occurs | Occurs 1x | Occurs 2x | Occurs 3x | Occurs at least 1x |
Pest Attack, Acid Rain Storm, Planetquake, Sunspot Activity | 7.37% | 34.74% | 43.42% | 14.47% | 92.63% |
Pirate Ship, Meteorite Strike, Radiation, Fire in Store | 18.95% | 52.10% | 28.95% | 0% | 81.05% |
-
The effects of the round events are the following:
Event | Description |
Pest Attack | A random Food exploitation owned by one of the two first players and having produced at least 1 unit of Food lose all its production. |
Pirate Ship |
If the level is Beginner or Standard:
- the Store loses all its Smithore units
- the players lose all their Smithore units
- the players lose all their Smithore production
If the level is Tournament:
- the players lose all their Crystite units
- the players lose all their Crystite production
|
Acid Rain Storm |
The storm passes through a random row.
For each exploitation in the row:
- if it's a Food exploitation, 4 units are added to the production
- if it's an Energy exploitation, 2 units are removed from the production
For each exploitation outside the row:
- if it's a Food exploitation, 1 unit is added to the production
- if it's an Energy exploitation, 1 unit is removed from the production
The production is limited by a minimum of 0 unit and a maximum of 8 units.
|
Planetquake |
This event has 2 consequences:
a mountain eventually moves:
The move has a probability of 50% to occur. A random mountain is chosen among the columns 2, 3, 7 and 8. It's randomly moved to the left or right adjacent plot. Both of the exploitations (the in and out locations) are lost with their production.
the mining production is halved:
All the Smithore and Crystite exploitations lose half of their production.
|
Sunspot Activity | All the Energy exploitations gain 3 units, with a maximum of 8 production units. |
Meteorite Strike | A meteor strike a random plot (other than the river and the Store) and wich the Crystite deposit is None, Low or Medium (the meteor never strikes a High or Very High deposit). The plot Crystite deposit becomes Very High and the known Crystite is updated. If an exploitation is located on the plot, it's lost with its production.. |
Radiation | A random exploitation owned by one of the two first players is lost with its production. |
Fire in Store | The Store loses all its Food, Energy and Smithore units. |
The Store
-
Ces algorithmes sont utilisés pour calculer:
- le prix réel des biens
- le prix simulé et la qualité des biens pour l'AI (sélection de la terre et placement des exploitations)
Le prix réel des biens est mis à jour en effectuant:
- la variation du prix du Food
- la variation du prix de l'Energy
- la variation du prix du Smithore
- la variation du prix du Crystite
-
Entrées:
- le type du bien (Food, Energy ou Smithore/Mule)
- la quantité totale en jeu pour le round suivant (Food, Energy ou Mule
- la quantité totale requise pour le round suivant (Food, Energy ou Mule
- le prix courant (Food, Energy ou Smithore)
- le prix minimum (Food, Energy ou Smithore)
Sorties:
Le ratio de l'offre et la demande est calculé en divisant la quantité totale en jeu par la quantité totale requise. Un ratio supérieur à 1 indique que l'offre est insuffisante pour la demande. Un ratio inférieur à 1 indique que l'offre est supérieure à la demande.
Dans le cas du Smithore/Mule, le ratio est borné par ]0.25; 3.0].
Le nouveau prix est alors calculé avec la formule suivante:
prix = 25% * prix + 75% * (prix * ratio)
ou encore
prix *= 0.25 + 0.75 * ratio
Finalement, le prix est borné en fonction du bien et de la raison du calcul du prix (réel ou simulé pour l'AI):
Good | Reason | Minimum |
Food | Real | 30 |
Energy | Real | 25 |
Smithore | Real | 50 |
Food | Simulated (AI) | 10 |
Energy | Simulated (AI) | 10 |
Smithore | Simulated (AI) | 50 |
-
La quantité théorique de mules requise est calculée en sommant:
- le nombre de terrain libre susceptibles d'être prises au round suivant (plafonné par 4)
- le nombre de parcelles sans exploitation (et donc nécessitant une mule)
La valeur est bornée par [0; 8]
-
Entrées:
- la quantité totale initiale en jeu
- la quantité possédée de chaque joueur
- la quantité produite de chaque joueur
- la quantité requise pour le round
- le prix courant
- le prix minimum
Sorties:
- la quantité totale finale en jeu
- le nouveau prix
La quantité totale initiale en jeu est égale:
- pour le calcul du prix réel ou simulé (AI): à la quantité du store
- pour les prix simulés suivant (AI): à la quantité totale finale en jeu du calcul simulé précédent
Dans un premier temps, on calcul le nombre d'unité totale qu'il y aura à la fin du round possédé par chaque joueur. On applique les 3 phases (Usage, Spoilage et Production):
- Usage (borné par 0): quantité possédée -= quantité requise
- Spoilage: quantité possédée *= 2/4
- Production: quantité possédée += quantité produite
La quantité totale finale en jeu est alors calculée en sommant la quantité totale initiale en jeu et la quantité possédée par chaque joueur après les 3 phases.
Ensuite on calcul la quantité totale requise pour le round suivant (égale à la quantité requise pour le round suivant multiplié par 4)
Finalement, on calcul le nouveau prix en appliquant la théorie de l'offre et de la demande avec comme paramètres:
- le type du bien (Food)
- la quantité totale finale en jeu pour le round suivant
- la quantité totale requise pour le round suivant
- le prix courant
- le prix minimum
La variation du prix du Food prend en compte le nombre d'unités possédées par les joueurs. Ainsi, tant que les joueurs en garderont une quantité suffisante, le prix du Food ne montera pas même si le store est en rupture.
-
Entrées:
- la quantité totale initiale en jeu
- la quantité possédée de chaque joueur
- la quantité produite de chaque joueur
- la quantité requise de chaque joueur pour le round
- le prix courant
- le prix minimum
Sorties:
- la quantité totale finale en jeu
- le nouveau prix
L'algorithme est identique à celui pour le Food, avec les différences suivantes:
- la quantité requise est propre à chaque joueur (et non dépendante du round)
- le Spoilage est de 3/4 (et non de 2/4)
- la quantité totale requise pour le round suivant égale à la somme des quantités requises de chaque joueur pour ce round + 4 (pour les futures exploitations)
- la fluctuation de l'offre et la demande est calculée pour le bien Energy
-
Entrées:
- la quantité de mules potentiellement disponible
- la quantité de mules requise pour le round
- le prix courant
Sorties:
La quantité de mules potentiellement disponibles est égale:
- pour le calcul du prix réel ou simulé (AI): à la quantité de mules dans le store plus la moitié du Smithore en store
- pour les prix simulés suivant (AI): à la quantité de mules potentiellement disponibles du calcul simulé précédent soustrait de la quantité de mules requise précédente (= 5)
La quantité de mules requise est égale:
- pour le calcul du prix réel: au calcul classique (calcMuleReq)
- pour le calcul du prix simulé (AI): à 5
On applique la théorie de l'offre et de la demande avec comme paramètres:
- le type du bien (Smithore/Mule)
- la quantité de mules potentiellement disponibles
- la quantité de mules requise
- le prix courant du Smithore
- un prix minimum du Smithore égal à 50
Ensuite on applique la variation naturelle du Smithore si le niveau n'est pas Beginner. Pour cela on calcul la binomiale avec une amplitude 2 pour la valeur 0. Le résultat est multiplié par 7 et ajouté au prix. Ainsi on obtient les variations suivantes:
Amplitude 2 (Factor 1) |
Variation | Probability |
-28 | 0.013% |
-21 | 0.562% |
-14 | 6.248% |
-7 | 24.303% |
0 | 37.748% |
+7 | 24.303% |
+14 | 6.248% |
+21 | 0.562% |
+28 | 0.013% |
Le prix est borné par 20.
Contrairement au prix du Food et de l'Energy, le prix du Smithore ne prend pas en compte les unités possédées par les joueurs, mais uniquement les unités dans le store et le nombre de mules disponibles. Ainsi, le prix grimpera dès que le store sera en rupture et/ou le nombre de mules sera insuffisant, et cela quelque soit le nombre d'unités possédées par les joueurs.
-
Le prix du Crystite est égal à 50 additionné à un nombre alétaoire entre 0 et 99 (bornes incluses).
-
Good | Buy price | Sell price | Increment (per pixel) |
Smithore | Current price | Buy price + 35$ | 1$ |
Crystite | Current price (to bottom multiple of 4) | Buy price + 140$ | 4$ |
Food | Current price - 15$ | Buy price + 35$ | 1$ |
Energy | Current price - 15$ | Buy price + 35$ | 1$ |
Goods auctions
L'enchère du Smithore et du Crystite a lieu s'il y a au moins 1 unité potentiellement disponible à la vente. C'est à dire si:
- un des joueurs possède au moins 1 unité
- ou un des joueurs a produit au moins 1 unité
- ou le store a au moins 1 unité en stock
expliquer l'ordre des auctions + phases
-
Usage, Spoilage, Production, Surplus et Shortage, (Critical Level = Requirement)
Phase | Description |
Usage | Nombre d'unités consommées pour le round courant. |
Spoilage | Nombre d'unités gaspillées pour le round courant. |
Production | Nombre d'unités produites pour le round courant. |
Requirement | Nombre d'unités théoriques nécessaires pour le round suivant pour ne pas être pénalisé (Usage théorique du round suivant). |
-
Phase | Description |
Usage | Aucune unité consommée. |
Spoilage | Toutes les unités au-delà de 50 sont perdues. |
Production | La production du round est ajoutée et le total plafonné à 255 unités. |
Requirement | Aucune unité nécessaire. |
50 unités de Smithore et de Crystite peuvent être gardées sans risque de Spoilage (mais attention au Pirate !).
-
Phase | Description |
Usage | Le nombre d'unités pour le round courant est consommé. |
Spoilage | La moitié des unités (après Usage) est perdue (partie entière de la division). |
Production | La production du round est ajoutée et le total plafonné à 255 unités. |
Requirement | Le nombre d'unités nécessaires pour le round suivant (afin de ne pas être pénalisé en temps). |
Aucune unité n'est perdue par le Spoilage si:
- il reste au maximum 1 unité après l'Usage
- il reste au maximum Usage+1 unités avant l'Usage
- on garde Requirement+1 unités au tour précédent
Ainsi, on peut garder 1 unité au-delà du Requirement sans Spoilage au tour suivant.
-
Phase | Description |
Usage | Le nombre calculé d'unités pour le round courant est consommé. |
Spoilage | Le quart des unités (après Usage) est perdu (partie entière de la division). |
Production | La production du round est ajoutée et le total plafonné à 255 unités. |
Requirement | Le nombre d'unités nécessaires pour le round suivant (afin ne pas être pénalisé en production) en comptant 1 exploitation supplémentaire. |
Aucune unité n'est perdue par le Spoilage si:
- il reste au maximum 3 unités après l'Usage
- il reste au maximum Usage+3 unités avant l'Usage
Le Requirement considère qu'au round suivant, il n'y aura qu'une exploitation supplémentaire. Or si le joueur achète une parcelle ou en gagne une, il manquera d'Energy pour les nouvelles exploitations. Il faut donc garder le maximum d'unités d'Energy pour les nouvelles exploitations du round suivant, tout en évitant de subir le Spoilage.
Le tableau suivant donne, pour le nombre d'unités d'Energy gardées en Surplus par rapport au Requirement, le nombre minimum (sans pénalité de production par manque d'Energy) et maximum (sans Spoilage) de nouvelles exploitations possibles (autre que d'Energy) pour le round suivant. Ne pas oublier qu'une unité d'Energy a déjà été ajoutée dans le Requirement pour 1 exploitation supplémentaire.
Surplus | Min Exp to put without Spoilage | Max Exp to put without Penalty |
0 | 0 | 1 |
1 (**) | 0 | 2 |
2 | 0 | 3 |
3 (*) | 1 | 4 |
4 | 2 | 5 |
5 | 3 | 6 |
(*) Ce choix est le plus judicieux car il permet de garder un maximum d'unités d'Energy et de poser de 1 à 4 nouvelles exploitations sans Spoilage ni pénalité (sachant qu'en général, on pose 1 exploitation).
(**) C'est le choix fait par l'ordinateur
-
-
Le temps disponible pour choisir l'action Buy/Sell, est de 30 ATU.
-
Un joueur est automatiquement placé:
- en Seller, s'il possède au moins 1 unité
- en Buyer, s'il n'en possède aucune
-
L'enchère du Food a lieu si:
- un des joueurs possède au moins 1 unité
- ou le store a au moins 1 unité en stock
Le joueur est automatiquement placé:
- en Seller, s'il possède au moins 1 unité en Surplus
- en Buyer, s'il n'en possède aucune en Surplus
-
TODO
-
L'enchère a lieu si:
- au moins un des joueurs est Seller
- ou le store a au moins 1 unité en stock
A la fin de chaque enchère, le prix du bien est mis à jour si au moins une unité a été vendue. Le nouveau prix est égal au prix moyen des unités vendues.
A la fin de l'enchère du Crystite, le nombre d'unités de Crystite dans le Store est mis à zéro.
-
Le temps disponible pour l'enchère est de 70 ATU.
-
TODO
Corral mules building and pricing
Le Store contient un maximum de 14 mules. Le nombre de mules manquantes est donc égal à 14 moins le nombre de mules dans le Store.
Les mules manquantes sont construites à partir des unités de Smithore que le Store possède, sachant que chaque mule nécessite 2 unités de Smithore.
Si le Store n'a pas assez de Smithore pour construire la totalité des mules manquantes, alors il en construit le maximum possible avec le Smithore disponible.
Ensuite le nouveau prix des mules est calculé. Il est égal à 2 fois le prix du Smithore arrondi au multiple de 10 inférieur (Si le prix du Smithore est de 49$, alors le prix des mules sera de 90$). Le prix moyen du Smithore étant de 50$, le prix moyen des mules est donc de 100$.
Status summary
-
Les points de chaque joueur sont divisés en 3 types:
Les points sont calculés ainsi:
Type | Entity | Point value |
Money | each 1$ | 1 point |
Land | (each Plot) | (500 points + Outfit price) |
each Plot without Exploitation | 500 points |
each Plot with a Food Exploitation | 525 points |
each Plot with a Energy Exploitation | 550 points |
each Plot with a Smithore Exploitation | 575 points |
each Plot with a Crystite Exploitation | 600 points |
Goods | each Mule | 35 points |
each Food unit | Current price |
each Energy unit | Current price |
each Smithore unit | Current price |
each Crystite unit | Current price |
-
Les joueurs sont ordonnés selon la valeur décroissante de leur score. En cas d'égalité entre joueurs, leur position est déterminée aléatoirement entre eux.
-
Le nombre total d'unités de Food en jeu est calculé. Il est égal à la somme des unités de Food des joueurs et du Store.
Le nombre total d'unités de Smithore en jeu est calculé de la même manière.
Echec de la colonie:
- Si la colonie n'a aucune exploitation de Food et que le nombre total d'unités de Food est nul, alors le jeu se termine et le message suivant est affiché: The Colony failed because of a total lack of Food !
- Si la colonie n'a aucune exploitation d'Energy et que le nombre total d'unités d'Energy est nul, alors le jeu se termine et le message suivant est affiché: The Colony failed because of a total lack of Energy !
Shortage de la colonie:
- Si le nombre total d'unités de Food est inférieur au nombre total d'unités de Food requis de tous les joueurs pour le round suivant, alors la colonie est en Shortage de Food.
- Si le nombre total d'unités d'Energy est inférieur au nombre total d'unités d'Energy requis pour toutes les exploitations actuelles de tous les joueurs, alors la colonie est en Shortage d'Energy.
- Si le nombre de mules dans le Store est inférieur au nombre de mules théoriquement requises pour le tour suivant (calcMuleReq), alors la colonie est en Shortage de Smithore.
Le message est ensuite construit en fonction des différents Shortage de la colonie:
- Pour un Shortage de Food et/ou d'Energy: The Colony has a shortage of[ Food][ and][ Energy] !
- Pour un Shortage de Smithore: The Store has a shortage of Smithore for mules!
-
Le message final apparait à la fin du dernier round. Une note de 0 à 6 est attribuée à la colonie en fonction du score total final:
Rating = round ((totalScore - 10000) / 20000), borné par [0; 6]
Selon la note, un des messages suivant est affiché:
Rating | Colony Score | Message |
0 | 0 to 19999 | Overall, the Colony failed... Dismally. The Federation debtors' prison is your next home! |
1 | 20000 to 39999 | Overall, the Colony failed... The Federation will no longer send trade ships. You are on your own! |
2 | 40000 to 59999 | Overall, the Colony survived... Barely. You will be living in tents. Few trading ships will come your way! |
3 | 60000 to 79999 | Overall, the Colony was a success. You have met the minimum standards set by the Federation, but your life will not be easy! |
4 | 80000 to 99999 | Overall, the Colony succeeded. The Federation is pleased by your efforts. You will live comfortably! |
5 | 100000 to 119999 | Overall, the Colony succeeded... Extremely well. You can now retire in elegant estates! |
6 | 120000 to +oo | Overall, the Colony delighted the Federation with your exceptional achievement. Your retirement will be luxuriou! |
La Federation décerne le titre de First Founder au premier joueur du classement si la Colonie est un succès, c'est à dire si le score est supérieur ou égal à 60000 (la note est au moins égale à 3).
Appendix
Computers Crystite AI
-
L'ensemble des 45 cases de la carte du Crystite connu est initialisé à l'état inconnu "?":
?????????
?????????
?????????
?????????
?????????
Cela signifie que les ordinateurs ne connaissent pas la présence ou l'absence de Crystite sur les terres. La carte sera complétée au cours du jeu lors des différents événements (Assay, phase de production et chute de météorite) puis mise à jour avec des valeurs potentielles déduites à partir des valeurs déjà présentes (Déduction du Crystite).
Cette carte ne spécifie pas si la valeur est une valeur réelle donnée par un Assay ou une valeur théorique obtenue suite à une déduction.
-
La carte du Crystite connu par les ordinateurs est étendue par rapport à son contenu. Les déductions sont faites à partir des terres de qualité 2 (Medium) et 3 (High) de part la construction initiale des dépôts de Crystite en étoile au début du jeu:
1
121
12321
121
1
Ainsi les terres contigues aux terres de qualité 2 (Medium) sont forcément de qualité 1 (Low) au minimum, et les terres de qualité 3 (High) sont forcément entourées en étoile de terres de qualité 2 (Medium) et 1 (Low) au minimum. Aucune déduction n'est faite à partir des terres de qualité 4 (Very High) car elles proviennent uniquement des chutes de météorite et ne provoquent pas de dépôt en étoile (seule la terre touchée par le météorite est concernée).
Exemple de déduction:
Si suite à un Assay, une terre de qualité 3 (High) est trouvée, alors la déduction suivante sera faite:
La déduction du Crystite est effectuée:
- au début de chaque round, à partir des capacités de production visibles des exploitations de Crystite
- après chaque Assay réalisé par un ordinateur
Lorsqu'un joueur humain réalise un Assay, seule la terre analysée est mise à jour et aucune déduction n'est faite immédiatement autour de cette terre.
Lorsqu'un joueur ordinateur réalise un Assay, la terre analysée est mise à jour et une déduction est faite immédiatement autour de cette terre.
Miscellaneous
-
Entrées:
- un nombre entier N
- une amplitude A
Sorties:
Cet algorithme calcul la variation autour d'un nombre N, avec une amplitude A, en utilisant une répartition binomiale symétrique comprise aléatoirement entre [-6.0; 6.0[ avec les probabilités suivantes:
Number | Probability |
[-6.0; -4.5[ | 0.000% |
[-4.5; -3.5[ | 0.013% |
[-3.5; -2.5[ | 0.562% |
[-2.5; -1.5[ | 6.248% |
[-1.5; -0.5[ | 24.303% |
[-0.5; 0.5[ | 37.748% |
[0.5; 1.5[ | 24.303% |
[1.5; 2.5[ | 6.248% |
[2.5; 3.5[ | 0.562% |
[3.5; 4.5[ | 0.013% |
[4.5; 6.0[ | 0.000% |
L'amplitude détermine le facteur multiplicatif:
Amplitude A | Factor F |
0 | 0 |
1 | 0.5 |
2 | 1 |
3 | 2 |
n | n-1 |
Le résultat final s'obtient avec la formule:
f (N, F) = N + round (F * binomial ())
La variation du nombre [=round (F * binomial ())] en fonction de l'amplitude est:
Amplitude 0 (Factor 0) |
Variation | Probability |
0 | 100.000% |
Amplitude 1 (Factor 0.5) |
Variation | Probability |
-2 | 0.105% |
-1 | 16.063% |
0 | 67.664% |
+1 | 16.063% |
+2 | 0.105% |
Amplitude 2 (Factor 1) |
Variation | Probability |
-4 | 0.013% |
-3 | 0.562% |
-2 | 6.248% |
-1 | 24.303% |
0 | 37.748% |
+1 | 24.303% |
+2 | 6.248% |
+3 | 0.562% |
+4 | 0.013% |
Exemple pour N=6 et A=2:
Le facteur multiplicatif est 1, la formule est donc: f (6, 1) = 6 + round (1 * binomial ())
Les résultats possibles de f (6, 1) sont:
Number | Probability |
2 | 0.013% |
3 | 0.562% |
4 | 6.248% |
5 | 24.303% |
6 | 37.748% |
7 | 24.303% |
8 | 6.248% |
9 | 0.562% |
10 | 0.013% |
Exemple pour N=5 et A=1:
Le facteur multiplicatif est 0.5, la formule est donc: f (5, 0.5) = 5 + round (0.5 * binomial ())
Les résultats possibles de f (5, 0.5) sont:
Number | Probability |
3 | 0.105% |
4 | 16.063% |
5 | 67.664% |
6 | 16.063% |
7 | 0.105% |
La répartition binomiale est utilisée pour calculer:
- la production des exploitations
- la variation du prix su Smithore
- le nombre de terres à vendre chaque tour
-
Entrées:
Sorties:
- la distance de la terre au store
Tout multiplié par 2
Cet algorithme calcul la distance d'une terre au store, en prenant en compte un malus pour la rivière.
Les distances entre chaque terre et le store sont les suivantes:
444454444
432232234
4321 1234
432232234
444454444
La distance est utilisée pour calculer:
- la qualité d'une terre
- le temps de déplacement lors d'une action d'un ordinateur
La distance ne prends pas en compte les montagnes.
Computers AI
-
Entrées:
- le nombre de rounds à simuler
Sorties:
- la qualité des biens [0; 31]
Cet algorithme est utilisé par l'AI:
- lors de la sélection de la terre (3 rounds simulés) land grant AI
- lors du placement des exploitations (2 rounds simulés) player turn AI
map of land rating (land grant AI)
player turn AI
Chacun des biens est noté (de 0 à 31) en fonction des prix simulés.
Pour chaque round à simuler, on effectue:
- production (sans malus d'Energy) du Food et de l'Energy (mais pas du Smithore)
- calcul du prix simulé pour le Food, Energy et Smithore (avec Usage, pas de Spoilage, construction des mules avec le Smithore)
La qualité d'un bien est alors égale à la moyenne des prix du bien sur les rounds simulés divisé par 8.
La qualité du Crystite est égal à: (100 + 4 * n° du round courant) / 8
-
Entrées:
- le type d'exploitation
- la terre concernée
- le joueur concerné
- la qualité du bien pour ce type d'exploitation [0; 255]
- le type de calcul (réel ou simulé)
Sorties:
- la qualité de l'exploitation
Utilisé par:
- player turn AI
- computer best exploitation AI
***Si ce n'est pas le premier round et ce n'est pas pour une land auction, la qualité du bien est modifié en fonction de son type (Food ou Energy) et de la situation du jeu. Cela reflète l'importance accordé à un bien donné face à une difficulté particulière. Un seul bonus peut être ajouté:
La capacité de production de la terre (avec les bonus économiques, sans variation binomiale) est ensuite calculée pour ce type d'exploitation et ce joueur avec le type de calcul souhaité (réel ou simulé). Elle est borné par [0; 8].
La qualité de la terre, pour ce type d'exploitation et ce joueur, est calculée en multipliant la qualité du bien (additionné de son bonus) par la capacité de production de la terre.
-
Entrées:
- la terre concernée
- le joueur concerné
- la qualité de tous les biens [0; 31]
- le type de calcul (réel ou simulé)
Sorties:
utilisé par:
- map of land rating AI (land grant)
- player turn AI
- computer land auction AI
- le type d'exploitation
- la qualité de l'exploitation [0; 255]
Cet algorithme recherche le meilleur type d'exploitation pour une terre et un joueur donné en fonction de la qualité des biens et du type de calcul. Pour cela, il calcule la qualité de chaque exploitation possible sur la terre en prenant en compte:
- qu'il n'y a pas de Crystite au niveau Beginner et Standard
- qu'il ne peut pas y avoir de Smithore ni de Crystite sur la rivière
|
|