AI system?

Posts 1–11 of 11 · Page 1 of 1
AI system?
Hi, I'm trying to make a simple rts game in c++. Im hoping it's possible. I havn't coded anything at all for it atm, it was a fairly new idea. I understand the basics of c++ i got a book to help me. My question is, however, would i code an ai system in the game (which would really make it the game loop i guess?) or would i code it in some AI coder program?


Thanks for the comments!

Bump??????
Before the programming part of your game comes, what is the point? Do you have it laid out (goal, rules, players, etc.)? Will it be console? Win32?

(There's a book for this, there's a book for everything.)
Goal: destroy enemy base first. Players: 2;1 human, 1 AI. I have all the rules writen down. Just a win32 application in the cmd box. I have a c++ through game design book, however im only halfway through. Im not sure if it goes over AI...
What is the process you go through to beat the enemy? (ie: battleship, random guesses; mastermind, logic or something of that sort; connect-4, place 4 pieces in a consecutive line)
The easiest way to create an AI is to just create a bunch of conditional statements that keep being looped through for each possible situation.
Quote Originally Posted by Kallisti View Post
The easiest way to create an AI is to just create a bunch of conditional statements that keep being looped through for each possible situation.
No... Just no.....
-facepalm-

**Do not do this**
Quote Originally Posted by ~FALLEN~ View Post
No... Just no.....
-facepalm-

**Do not do this**
Says the guy who took 713 lines for ATOI, which had like 100 case statements.

No... Just no.....
-facepalm-
Quote Originally Posted by Ionizer View Post


Says the guy who took 713 lines for ATOI, which had like 100 case statements.

No... Just no.....
-facepalm-
You may see it as a pre-mature optimization but when you're writing your own runtime, STL, etc it's not so evil..
Regardless, there's plenty of other implementations I have for atoi that was just one of them.

---------- Post added at 02:43 AM ---------- Previous post was at 02:41 AM ----------

Quote Originally Posted by dimast View Post
the best choice is a machine learning. google for it, there is a lot of samples. It would be quiet useful for you to implent the system of such kind.
And if everything is ok it will pwn every single player in your game(with small subset of meaning characteristics)
I personally prefer neural networked "learning".. but I guess the type of "learning" you should use is dependent on the type of task you wish to preform.
Quote Originally Posted by Ionizer View Post


Says the guy who took 713 lines for ATOI, which had like 100 case statements.

No... Just no.....
-facepalm-
There is optimize code, there is fast code, there is size code and then there is beautiful code or what i call artist code. Because he had all those lines, doesnt mean he wasn't going for something from it, for example, lets say u wanted convert a texture from RGB

u can simple use a while loop coping all the texels or u can use SSE/AVX instructions, clearly the SSE/AVX instructions are way more code, but they are WAY faster.
Hmm. You would start with a number of units, a factory and a main base area. You start by placing your units (a max of say 5 spaces from the main base) i guess the battle ground will be an array and to place characters, you simply enter in coordinates. Any way. Its like an rts game. So the rounds would go by turns. First your turn (start with upgrade stage, then move stage, then attack stage)

---------- Post added at 11:15 AM ---------- Previous post was at 10:30 AM ----------

Quote Originally Posted by Kallisti View Post
The easiest way to create an AI is to just create a bunch of conditional statements that keep being looped through for each possible situation.
Hmm. That seems like it would take a while... I wouldnt even know where to start
the best choice is a machine learning. google for it, there is a lot of samples. It would be quiet useful for you to implent the system of such kind.
And if everything is ok it will pwn every single player in your game(with small subset of meaning characteristics)
Posts 1–11 of 11 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?