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

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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.