The rules file is:
Limits are constraints on a single ratio. Goals are each a ratio, and are all summed together to get the final score used to rank the vine.
A ratio is defined on a single line by listing all the components. Components may be a constant (such as 1.5 or -3), an attribute (acid, color, grapes, quality, skin, sugar, vigor, tends), or the inverse of an attribute (specified as an 'i' followed by the attribute, so iacid means 1/acid, icolor means 1/color, and so on).
Examples:
Acid level:
acid
Skin * color:
skin color
Acid/grapes:
acid igrapes
Ten times the number of grapes:
10 grapes
Limits are things such as "12 to 18 sugar", "at least 20 quality", or "no more than 200 skin*color". They are specified as minimum, maximum, ratio.
Examples:
12-18 sugar:
12, 18, sugar
20-99999 quality:
20, 99999, quality
0-1000 skin*color:
0, 1000, skin color
Goals are things to maximize within the limits. The sum of each goal line is used to rank the vine. They are specified one ratio to a line, and the final result is the sum of them all. Constants can be used here to make some goals effectively more 'important' than others.
Examples:
Maximize color*skin:
color skin
Maximize quality:
quality
Maximize both grapes and quality, with grapes counting double:
grapes 2
quality
12, 18, sugar
20, 99999, quality
skin color
One or more cuttings, with a blank line between each.
A cutting is:
Note that unexpected bahavior may result if each tend is not spelled EXACTLY the same way everywhere that it appears.
Note also that the states must match EXACTLY the states as typed in vineyards.txt
Distraction
Karnak vine
Initial, (plant), 0, 0, 8, 0, 0, 0, 100
Vines are sagging a bit, Aerate the Soil, -1, 4, -2, 3, -2, 3, -14
Vines are sagging a bit, Mist the Grapes, 2, -2, 3, -2, -2, 3, -3
Vines are sagging a bit, Pinch off Weakest Stems, 2, -3, -9, 4, 3, 3, -9
Vines are sagging a bit, Shade the Leaves, -3, 1, -1, 4, -1, 0, -12
Vines are sagging a bit, Spread out the Vines, -3, -3, 11, 3, 3, 3, -8
Vines are sagging a bit, Tie the vines to the Trellis, -2, 1, 4, -2, 1, -2, -10
Vines are sagging a bit, Trim the lower leaves, 3, -1, 4, 2, -3, -1, -8
Leaves are wilting, Aerate the Soil, 1, 4, 2, -1, -3, 3, -14
Leaves are wilting, Mist the Grapes, 2, 0, -9, 0, 4, -3, -14
Leaves are wilting, Pinch off Weakest Stems, -2, -2, 2, 3, 4, -2, -11
Leaves are wilting, Shade the Leaves, -2, -1, 12, -3, 3, 1, -5
Leaves are wilting, Spread out the Vines, 0, 2, 7, 4, 4, -3, -6
Leaves are wilting, Tie the vines to the Trellis, -1, 3, -3, 0, 3, 4, -9
Leaves are wilting, Trim the lower leaves, -2, -3, 2, 1, 1, -2, -10
A musty smell can be detected, Aerate the Soil, 3, 3, 1, -1, -1, -2, -2
A musty smell can be detected, Mist the Grapes, 0, 0, -2, 2, 3, 1, -5
A musty smell can be detected, Pinch off Weakest Stems, 4, -2, -7, 1, 1, -1, -11
A musty smell can be detected, Shade the Leaves, -3, 2, 9, -1, 3, -1, -7
A musty smell can be detected, Spread out the Vines, 1, 1, 5, 3, 4, 0, -1
A musty smell can be detected, Tie the vines to the Trellis, 1, 3, 7, -1, 2, 1, -13
A musty smell can be detected, Trim the lower leaves, 0, 0, -7, 0, 3, 2, -5
Stems look especially fat, Aerate the Soil, 4, 4, 10, 1, -3, -2, -13
Stems look especially fat, Mist the Grapes, 1, -2, -5, 0, -1, 3, -11
Stems look especially fat, Pinch off Weakest Stems, 1, 2, -5, 0, 1, 1, -11
Stems look especially fat, Shade the Leaves, -2, -1, 5, -1, 0, 4, -2
Stems look especially fat, Spread out the Vines, 3, 2, 8, 2, 0, 3, -9
Stems look especially fat, Tie the vines to the Trellis, 4, 3, 12, -1, -3, -2, -2
Stems look especially fat, Trim the lower leaves, 3, 4, -9, 2, 3, 0, -1
Leaves rustle in the breeze, Aerate the Soil, -1, -2, 4, -1, 0, -3, -9
Leaves rustle in the breeze, Mist the Grapes, 4, 1, -5, 3, 0, 4, -7
Leaves rustle in the breeze, Pinch off Weakest Stems, 1, 4, -1, 2, 4, 3, -12
Leaves rustle in the breeze, Shade the Leaves, 3, 0, -3, -2, -3, 1, -6
Leaves rustle in the breeze, Spread out the Vines, 2, -1, 11, -1, 2, -2, -6
Leaves rustle in the breeze, Tie the vines to the Trellis, 0, 0, 7, 3, 2, 3, -13
Leaves rustle in the breeze, Trim the lower leaves, 1, 2, 9, 3, 1, 0, -1
Grapes are starting to shrivel, Aerate the Soil, -3, 4, 4, 1, 2, 1, -2
Grapes are starting to shrivel, Mist the Grapes, -2, 3, 3, -3, -1, 4, -10
Grapes are starting to shrivel, Pinch off Weakest Stems, 4, 3, 6, -2, -1, 0, -2
Grapes are starting to shrivel, Shade the Leaves, -3, 1, 5, 2, 3, 1, -11
Grapes are starting to shrivel, Spread out the Vines, 2, 4, -8, -1, 3, 2, -2
Grapes are starting to shrivel, Tie the vines to the Trellis, 0, 4, 4, 4, 4, -3, -4
Grapes are starting to shrivel, Trim the lower leaves, -2, 0, 3, 2, 2, 3, -10
Leaves shimmer with moisture, Aerate the Soil, -2, -2, 11, 3, 1, -2, -13
Leaves shimmer with moisture, Mist the Grapes, 3, 0, -4, -2, 1, 4, -7
Leaves shimmer with moisture, Pinch off Weakest Stems, 3, 0, -1, 4, -3, 1, -5
Leaves shimmer with moisture, Shade the Leaves, -3, 0, -5, 4, 1, 0, -13
Leaves shimmer with moisture, Spread out the Vines, 0, 0, -2, 0, 1, -1, -14
Leaves shimmer with moisture, Tie the vines to the Trellis, -3, -3, -5, -1, 0, 3, -6
Leaves shimmer with moisture, Trim the lower leaves, 1, 4, -5, -1, -1, 1, -14
Contemplation
Tug event vine
Initial, (plant), 0, 0, 9, 0, 0, 0, 100
Vines are sagging a bit, Aerate the Soil, -1, 4, 4, -3, -1, 3, -14
Vines are sagging a bit, Mist the Grapes, 2, -2, -1, -8, -4, -3, -3
Vines are sagging a bit, Pinch off Weakest Stems, 2, -3, -3, -8, 11, 3, -9
Vines are sagging a bit, Shade the Leaves, -3, 1, -3, -5, 0, 0, -12
Vines are sagging a bit, Spread out the Vines, -3, -2, -1, -5, 7, 4, -8
Vines are sagging a bit, Tie the vines to the Trellis, 0, 1, 4, 6, 11, -2, -10
Vines are sagging a bit, Trim the lower leaves, 3, -1, -2, 12, 0, -1, -8
Leaves are wilting, Aerate the Soil, 1, 4, 2, -3, -7, 3, -14
Leaves are wilting, Mist the Grapes, 2, -2, -1, -8, 0, -1, -14
Leaves are wilting, Pinch off Weakest Stems, -2, -2, -2, 9, 2, -1, -11
Leaves are wilting, Shade the Leaves, -2, -1, 4, -7, 1, 1, -5
Leaves are wilting, Spread out the Vines, 0, 2, -3, 0, -4, -3, -6
Leaves are wilting, Tie the vines to the Trellis, -1, 3, 0, -8, -1, 4, -9
Leaves are wilting, Trim the lower leaves, -2, -3, 0, 5, 1, -2, -10
A musty smell can be detected, Aerate the Soil, 3, 3, -3, 3, -9, -1, -2
A musty smell can be detected, Mist the Grapes, 0, 0, -2, 8, 1, 1, -5
A musty smell can be detected, Pinch off Weakest Stems, 4, -2, 1, 3, 1, 0, -11
A musty smell can be detected, Shade the Leaves, -3, 2, -1, 1, -5, -1, -7
A musty smell can be detected, Spread out the Vines, 1, 1, -1, 9, 9, 0, -1
A musty smell can be detected, Tie the vines to the Trellis, 1, 3, -1, 7, 10, -2, -13
A musty smell can be detected, Trim the lower leaves, -3, -1, 1, 5, -9, 1, -5
Stems look especially fat, Aerate the Soil, 4, 4, 4, -3, -5, -2, -13
Stems look especially fat, Mist the Grapes, 1, -2, 1, 0, -9, 3, -11
Stems look especially fat, Pinch off Weakest Stems, 1, 2, 3, -6, 1, 1, -11
Stems look especially fat, Shade the Leaves, -2, -1, 1, 5, -6, 4, -2
Stems look especially fat, Spread out the Vines, 3, 2, 1, 2, -1, 3, -9
Stems look especially fat, Tie the vines to the Trellis, 4, 3, 2, 9, -7, -2, -2
Stems look especially fat, Trim the lower leaves, 3, 4, 1, 4, -9, 0, -1
Leaves rustle in the breeze, Aerate the Soil, -1, -3, 4, 0, -6, -3, -9
Leaves rustle in the breeze, Mist the Grapes, 4, 1, 1, 5, 4, 4, -7
Leaves rustle in the breeze, Pinch off Weakest Stems, 1, 4, 3, -6, 0, 3, -12
Leaves rustle in the breeze, Shade the Leaves, 3, 0, 3, 2, 7, 1, -6
Leaves rustle in the breeze, Spread out the Vines, 2, -1, 1, -1, 8, -2, -6
Leaves rustle in the breeze, Tie the vines to the Trellis, 0, 0, 3, 5, 6, 0, -13
Leaves rustle in the breeze, Trim the lower leaves, 1, 2, -3, -1, -1, 0, -1
Grapes are starting to shrivel, Aerate the Soil, -3, 4, 4, 3, 12, 1, -2
Grapes are starting to shrivel, Mist the Grapes, -2, 3, 3, -1, 11, 4, -10
Grapes are starting to shrivel, Pinch off Weakest Stems, 4, 3, 4, -4, -1, -3, -2
Grapes are starting to shrivel, Shade the Leaves, -3, 1, 3, 6, -1, 1, -11
Grapes are starting to shrivel, Spread out the Vines, 2, 4, 0, 7, 11, 2, -2
Grapes are starting to shrivel, Tie the vines to the Trellis, -3, 4, 0, 12, -4, -2, -4
Grapes are starting to shrivel, Trim the lower leaves, -2, 0, -1, 6, 12, -3, -10
Leaves shimmer with moisture, Aerate the Soil, -2, -2, -1, -5, -6, -2, -13
Leaves shimmer with moisture, Mist the Grapes, 3, 0, 0, 0, 5, 4, -7
Leaves shimmer with moisture, Pinch off Weakest Stems, 3, 0, 3, 4, -5, 1, -5
Leaves shimmer with moisture, Shade the Leaves, -2, 0, -3, -6, 9, 0, -13
Leaves shimmer with moisture, Spread out the Vines, 0, 0, 0, 0, 1, -1, -14
Leaves shimmer with moisture, Tie the vines to the Trellis, -3, -3, 1, -9, 0, 3, -6
Leaves shimmer with moisture, Trim the lower leaves, 1, 3, -1, -5, 3, 1, -14
One or more vineyards, with a blank line between each.
A cutting is:
Note that the states listed must EXACTLY match the states in cuttings.txt
Vineyard 1
896, 6753
Leaves shimmer with moisture
Grapes are starting to shrivel
Stems look especially fat
Leaves are wilting
Leaves rustle in the breeze
Vineyard 2
897, 6753
A musty smell can be detected