
February 27th, 2005, 12:41 PM
|
|
Registered User
|
|
Join Date: Feb 2005
Posts: 25
Time spent in forums: 4 h 48 m 53 sec
Reputation Power: 0
|
|
|
Simple mastermind game in delphi!
Hi guys and girls,
im trying to suss out how to make a simple mastermind game in delphi, no interface is required, its a simple version, using numbers 0-9 instead of colours. I am trying to get started and dont no what to do. Ive worked out i need to use procedures, records and at some point parameter passing but i have no clue what procedures are?
I looked it up, and dont think i really grasped it that well, but heres what i sorter drew up:
procedure assignvalues
var Num1, Num2, Num3, Num4: integer(0..9);
what do i need to do for this little section to work! do i need to add in what the random four digit code is? i.e
Randomize;
Code := Random(10000);
Someone help please!!!
|