I am making a small game, just to sharpen up my Delphi knowledge before school starts again, and also to show of to my friends. So in this game I have five integers and I need to check if at least three of them equal each other. How would I…
for K := 1 to 6 do
if aCount[K] >= myVariable then
begin
iScore := K * myVariable; // <-- here was the problem, multiply by K, not the value of K
Break;
end;
pritaeas
Posting Prodigy
9,265 posts since Jul 2006
Reputation Points: 1,173
Solved Threads: 1,456
Skill Endorsements: 86
Question Answered as of 1 Year Ago by
pritaeas