OK,

Well I am new to C++ & I am going to start with making my first text based RPG I have been designing for a year now.

Well I got one question,

I don't quite understand how AI works. I wanted to know if there's AI in text based games? I need a better understanding of AI & I have no money as of right now to buy a book. Please help me! Thanks!