Click here to Skip to main content
15,888,579 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Remember being that bright, new, fresh employee? Pin
Sander Rossel27-Feb-23 21:01
professionalSander Rossel27-Feb-23 21:01 
GeneralRe: Remember being that bright, new, fresh employee? Pin
dandy7228-Feb-23 3:24
dandy7228-Feb-23 3:24 
GeneralRe: Remember being that bright, new, fresh employee? Pin
Sander Rossel28-Feb-23 5:13
professionalSander Rossel28-Feb-23 5:13 
GeneralRe: Remember being that bright, new, fresh employee? Pin
dandy7228-Feb-23 8:05
dandy7228-Feb-23 8:05 
GeneralRe: Remember being that bright, new, fresh employee? Pin
Sander Rossel1-Mar-23 22:21
professionalSander Rossel1-Mar-23 22:21 
GeneralRe: Remember being that bright, new, fresh employee? Pin
dandy722-Mar-23 3:49
dandy722-Mar-23 3:49 
GeneralRe: Remember being that bright, new, fresh employee? Pin
GuyThiebaut27-Feb-23 21:40
professionalGuyThiebaut27-Feb-23 21:40 
GeneralSimulation part 2 [edited] Pin
Calin Negru12-Mar-23 22:53
Calin Negru12-Mar-23 22:53 
This is a follow up to one of my GameDev blog entries. The website has been on a declining path for some time, it is offline now and chances are it will stay that way forever. I decided to post an update to my blog here. The theme of my blog was “creating a Starcraft AI player that behaves like a human”. There are many RTS titles out there I chose Starcraft with the intention to narrow down on what I’m trying to achieve.
The blog had several entries, the most important of them was titled “simulation”. Here is a short recap of that entry:
When the AI pl needs to build an expansion to his base the question is is it a good idea to send one of his SCVs and start building a Command Center in a nearby crystal cluster. To make that decision he needs to place the SCV on every path node of the path between the SCV start position and the target crystal cluster position. The AI will simulate an attack from the enemy* to every path node mentioned above. For example An SCV path made of 20 nodes means 20 simulated attacks. If the SCV dies at any node it means sending it to build an expansion is not safe. If a group of friendly combat units are in the way on the paths the enemy units are following, sending the SCV towards the crystal cluster in question is safe.
That is what I spoke about in my previous blog entry. What I want to add now is that the tactic of moving a worker and constructing an expansion described here applies not only to constructing expansions but also to constructing any type of building in your base.
When playing Starcraft you have a long term goal set in your mind. Getting to that goal can be achieved not just by one singular course of action. Same thing applies to AI. What AI builds is decided by his long term goal. How he builds it (where he places the buildings) is decided by the conditions at the time he needs to make the build.
Another thing I want to mention is that not only the AI can check if it is safe for an SCV to do something he can also take measures to make it safe. To achieve that he needs to place combat units on the path between enemy units* and the area where the SCV will move

I am still far from getting this stuff working in my own game. I’m still learning to get the units execute a Starcraft type resource collecting sequence.

* when I say that AI will simulate an attack from the enemy I mean that it will either simulate an attack from a group of enemy units nearby he is aware of or if he is not aware of any enemy units nearby: a generic attack coming from the direction where the enemy base is.
GeneralCCC 2023-02-27 Pin
ChandraRam26-Feb-23 21:30
ChandraRam26-Feb-23 21:30 
GeneralRe: CCC 2023-02-27 Pin
pkfox26-Feb-23 21:33
professionalpkfox26-Feb-23 21:33 
GeneralRe: CCC 2023-02-27 - we have a winner Pin
ChandraRam26-Feb-23 21:37
ChandraRam26-Feb-23 21:37 
GeneralLanguage of Wales Pin
jmaida26-Feb-23 21:27
jmaida26-Feb-23 21:27 
GeneralRe: Language of Wales Pin
Richard MacCutchan26-Feb-23 21:33
mveRichard MacCutchan26-Feb-23 21:33 
GeneralRe: Language of Wales Pin
pkfox26-Feb-23 21:35
professionalpkfox26-Feb-23 21:35 
GeneralRe: Language of Wales Pin
Richard MacCutchan26-Feb-23 21:56
mveRichard MacCutchan26-Feb-23 21:56 
GeneralRe: Language of Wales Pin
pkfox26-Feb-23 22:01
professionalpkfox26-Feb-23 22:01 
GeneralRe: Language of Wales Pin
Richard MacCutchan26-Feb-23 22:16
mveRichard MacCutchan26-Feb-23 22:16 
GeneralRe: Language of Wales Pin
pkfox26-Feb-23 22:31
professionalpkfox26-Feb-23 22:31 
GeneralRe: Language of Wales Pin
Richard MacCutchan26-Feb-23 23:32
mveRichard MacCutchan26-Feb-23 23:32 
GeneralRe: Language of Wales Pin
pkfox26-Feb-23 23:54
professionalpkfox26-Feb-23 23:54 
GeneralRe: Language of Wales Pin
Richard MacCutchan27-Feb-23 0:08
mveRichard MacCutchan27-Feb-23 0:08 
GeneralRe: Language of Wales Pin
pkfox27-Feb-23 0:19
professionalpkfox27-Feb-23 0:19 
GeneralRe: Language of Wales Pin
Richard MacCutchan27-Feb-23 0:30
mveRichard MacCutchan27-Feb-23 0:30 
GeneralRe: Language of Wales Pin
pkfox27-Feb-23 3:05
professionalpkfox27-Feb-23 3:05 
GeneralRe: Language of Wales Pin
jmaida27-Feb-23 11:47
jmaida27-Feb-23 11:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.