Re: Delphi scoring method?

Posted by webmaster Guido on March 10, 2001 at 17:00:34:

In Reply to: Delphi scoring method???? posted by Chris on March 08, 2001 at 17:31:32:

: I've designed a program like the word game out of count down. i now need to set up a scoring system dependant on the size of a word.

: Basicly i need coding thats gonna let me recognize the size of a word and apply a score??????

Let's assume that your word sits in the string variable "GuessWord" and the Score in an integer variable "Score". Increment the score with a number depending of the length of the word:

Score := Score + Length(GuessWord);