I've been out of town for a bit, so I just got to looking at this.  I'll
try to add some comments as I have time to sift through the code.  Here's
a quick change to one of your functions though.

That get_letter() function is a lot of wasted cpu cycles.  If you keep in
mind that all characters are actually just numbers internally, you can use
a simple addition to turn your input number into the appropriate output
character:

char get_letter( int number )
{
   return number + 64;
}

I just returned it as a implicitly casted char rather than a pointer to a
char, but change as you see fit.  64 is a constant based on the ASCII
chart since capital A is ASCII 65 in decimal.

Again, I'll try to add more insightful comments as I have time to catch up
my reading on the ROM list.

> OK, well im posting everything in wordtwist.c and everything that should
> go
> with it(kinda like a snippet that doesnt work;) ) at
> http://www.angelfire.com/apes/tristaniso/wordtwist.txt
>
> look for:
> void do_wtcorrect(CHAR_DATA *ch, char *argument)
> and
> void do_guesswt(CHAR_DATA *ch, char *argument)
>
> those are where guesses are dealt with
>
> btw, please forgive how crude all this surely is...its the best of my
> abilities;)
>


Reply via email to