Page 1 of 1
Programming word games?

Posted:
Oct 22, 2003 @ 3:31pm
by egarayblas
I'm actually considering a simple word game in my spare time while working on a bigger project.

I was just wondering, what's the best method to store all those words that I will use in my game? Will I be better off learning ADO CE and storing everything in a database? Or use a resource file? Or just use a plain "external" text file? Any advice from those who have experience working w/ these kinds of games?
Thanks in advance!
Erick

Posted:
Oct 22, 2003 @ 4:33pm
by Dan East

Posted:
Oct 22, 2003 @ 4:38pm
by andyclap

Posted:
Oct 22, 2003 @ 11:47pm
by mlepage

Posted:
Oct 23, 2003 @ 3:26am
by egarayblas
Dan: Thanks for the tip. You're right, I think I'm better off just using my own format.
Andyclap: What you mentioned is very interesting. I'll try to research on that from the net. Got any quick links where I can start with btw? Thanks!

Posted:
Oct 23, 2003 @ 7:29am
by okku

Posted:
Oct 23, 2003 @ 10:32am
by andyclap

Posted:
Oct 23, 2003 @ 12:26pm
by refractor

Posted:
Oct 23, 2003 @ 4:30pm
by mlepage

Posted:
Oct 23, 2003 @ 4:37pm
by refractor

Posted:
Oct 23, 2003 @ 4:52pm
by mlepage

Posted:
Oct 25, 2003 @ 2:01am
by egarayblas
Guys, in line with this topic, how do you efficiently parse a short word into separate letters? For example I have a TCHAR variable containing the word "BOY", how do I parse it such that I can have it like my_char[0] = "B", my_char[1] = "O", my_char[2] = "Y"? Mine is working but I'm not sure I'm doing it right and there maybe a simpler way to go about this. Thanks!

Posted:
Oct 25, 2003 @ 4:03am
by mlepage
I would just use std::basic_string<_TCHAR>.
Then, str[0] is the first _TCHAR, str[1] is the second, and so on.
Further, you have all the standard string algorithms (like searching and replacing) at your disposal.

Posted:
Oct 27, 2003 @ 8:42am
by mlepage