1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184
| unit secondtour;
interface
uses ucandidat, pccourseelysee;
procedure secondtour1(var cand: TCandidat);
implementation
//////////////////////////////////////////////// SECOND TOUR ////////////////////////////////////////////////////////////////////////////
procedure secondtour1(var cand: TCandidat);
var
tirage:integer;
numerocase:integer;
propositon:string;
begin
tirage_de(tirage, 1,6);
writeln (cand.nom, ' avance de ', tirage, ' cases');
case tirage of
1 : begin
cand.numerocase:= cand.numerocase+1;
end;
2 : begin
cand.numerocase:= cand.numerocase+2;
end;
3 : begin
cand.numerocase:= cand.numerocase+3;
end;
4 : begin
cand.numerocase:= cand.numerocase+4;
end;
5 : begin
cand.numerocase:= cand.numerocase+5;
end;
6 : begin
cand.numerocase:= cand.numerocase+6;
end;
end;
If cand.numerocase=1 then
begin
writeln ('Aujourdhui cest dimanche: un repos bien merite et surtout un petit meeting à la sortie de la messe');
end;
If cand.numerocase=2 then
begin
writeln ('Lundi, un meeting a Lyon, vous gagnez 3% de popularite');
cand.popularite:=cand.popularite+3;
end;
If cand.numerocase=3 then
begin
writeln ('1000 nouveaux adhérents vous ont rejoint, vous gagnez 100 000');
cand.budget:=cand.budget+100000;
end;
If cand.numerocase=4 then
begin
writeln ('Chance! Avancez de deux cases');
cand.numerocase:=cand.numerocase+2;
writeln('Nouvelle case: ',(cand.numerocase));
end;
If cand.numerocase=5 then
begin
writeln ('Polémique, vous etes accuses de ne pas avoir paye l ISF alors que vous deviez le payer. Reculez de deux cases');
cand.numerocase:=cand.numerocase-2;
writeln('Nouvelle case: ',(cand.numerocase));
end;
If cand.numerocase=6 then
begin
writeln ('Vous venez de toucher dun don anonyme de 100000 euro et beneficie dun gain de 2% de popularite en plus.');
cand.budget:=cand.budget+100000;
cand.popularite:=cand.popularite+2;
end;
If cand.numerocase=7 then
begin
writeln ('Votre nouvelle campagne daffichage fait des ravages! Allez directement case 11');
cand.numerocase:=cand.numerocase+3;
end;
If cand.numerocase=8 then
begin
writeln ('Aujourdhui cest dimanche. Profitez du soleil!');
end;
If cand.numerocase=9 then
begin
writeln ('Votre avion a eu du retard, vous navez pas pu vous rendre a votre meeting vous perdez 100000 euro ');
cand.budget:=cand.budget-100000;;
end;
If cand.numerocase=10 then
begin
writeln ('Votre chef de cabinet demissionne! Vous perdez 2% dintentions de vote! Et 100000 euro');
cand.popularite:=cand.popularite-2;
cand.budget:=cand.budget-100000;
end;
If cand.numerocase=11 then
begin
writeln ('Chance! Vous gagnez 200000 euro et vous gagnez 5% dintentions de vote!');
cand.popularite:=cand.popularite-2;
cand.budget:=cand.budget+200000;
end;
If cand.numerocase=12 then
begin
if cand.budget>200000 then
writeln ('Proposition, si vous avez plus de 200000 euro voulez-vous échanger cette argent et avancer de 4 cases? Si oui, tapez oui');
readln(propositon);
if propositon=('oui') then
begin
cand.Numerocase:=cand.Numerocase+4;
cand.budget:=cand.budget-200000;
end
else writeln ('Vous gagnez 1% dintentions de vote suite à votre voyage aux Antilles');
end;
If cand.numerocase=13 then
begin
writeln('Case malus: Retournez a la case départ');
cand.numerocase:=0;
end;
If cand.numerocase=14 then
begin
writeln('Case Bonus: avancez de 5 cases');
cand.Numerocase:=cand.Numerocase+5;
end;
If cand.numerocase=15 then
begin
writeln ('Aujourdhui cest dimanche. Profitez du soleil!');
end;
If cand.numerocase=16 then
begin
writeln('Vous gagnez 200000 euros');
cand.budget:=cand.budget+200000;
end;
If cand.numerocase=17 then
begin
writeln('Vous avez oublié de faire imprimer des tracts, vous peredez 2% dintentions de votes');
cand.popularite:=cand.popularite-3;
end;
If cand.numerocase=18 then
begin
writeln('Nouvelles affiches, des couleurs qui attirent loeil, vous gagnez 5% dintentions de vote ');
cand.popularite:=cand.popularite+5;
end;
If cand.numerocase=19 then
begin
writeln('Vous semblez prendre le large, vous gagnez 4% dintentions de vote et 200000 euros ');
cand.popularite:=cand.popularite+5;
end;
If cand.numerocase=20 then
begin
writeln('Votre projet ne séduit plus, reculez de 3 cases! ');
cand.numerocase:=cand.numerocase-3;
end;
If cand.numerocase=21 then
begin
writeln('Les affiches nont pas etes affiches a temps, vous perdez 3% dintentions de vote');
cand.popularite:=cand.popularite-3;
end;
If cand.numerocase=22 then
begin
writeln ('Aujourdhui cest dimanche. Profitez du soleil!');
end;
If cand.numerocase=23 then
begin
writeln('Cest la fin du longue campagne vous beneficiez de 10% de pourcent dintentions de vote et 500000 euros ');
cand.popularite:=cand.popularite+5;
end;
If cand.numerocase=24 then
begin
writeln('Fin de campagne, lElysee est a vous!! ');
cand.popularite:=cand.popularite+5;
end;
end;
end. |
Partager