Курсовая работа: Программа игры Кости
1: Image2. Picture. LoadFromFile ('1. jpg');
2: Image2. Picture. LoadFromFile ('2. jpg');
3: Image2. Picture. LoadFromFile ('3. jpg');
4: Image2. Picture. LoadFromFile ('4. jpg');
5: Image2. Picture. LoadFromFile ('5. jpg');
6: Image2. Picture. LoadFromFile ('6. jpg');
end;
case (b) of
1: Image3. Picture. LoadFromFile ('1. jpg');
2: Image3. Picture. LoadFromFile ('2. jpg');
3: Image3. Picture. LoadFromFile ('3. jpg');
4: Image3. Picture. LoadFromFile ('4. jpg');
5: Image3. Picture. LoadFromFile ('5. jpg');
6: Image3. Picture. LoadFromFile ('6. jpg');
end;
sum: =a+b;
Memo1. Lines. Add ('Сумма кубиков = ' +inttostr (sum));
if (sum=x) then
begin
ns: =ns+st*4;
Memo1. Lines. Add ('Вы выиграли ! Ваш выигрыш увеличин в 4 раза! =) ');
Animate1. Visible: =true;
Animate1. FileName: = ('win. avi');
Edit3. Text: =inttostr (ns);
v: =v+1;
end;
if (sum>x) then begin
ns: =ns-st;
Memo1. Lines. Add ('Вы проиграли! = (');