if anyone knows how to - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

if anyone knows how to

player1245player1245 Posts: 4Member
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

  • zibadianzibadian Posts: 6,349Member
    : 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
    :
    [code]
    procedure RewardPoints(PlayerHasWon: boolean);
    begin
    if PlayerHasWon then
    Points := Points + SomeReward
    else
    Points := Points - SomeLoss;
    end;

    begin
    Points := 500;
    end.
    [/code]
Sign In or Register to comment.