hey im trying to write a segment of code that i have no idea were to start can ne1 plaz help me
im trying to writ a procedure that will
reward points and subtract them when the play loses
the starting points are 500 points
if anyone can help me or even point me in the right direction it would be greatly appreceated
Comments
: im trying to writ a procedure that will
: reward points and subtract them when the play loses
: the starting points are 500 points
: if anyone can help me or even point me in the right direction it would be greatly appreceated
:
[code]
procedure RewardPoints(PlayerHasWon: boolean);
begin
if PlayerHasWon then
Points := Points + SomeReward
else
Points := Points - SomeLoss;
end;
begin
Points := 500;
end.
[/code]