Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (754)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (842)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  AI Blackboards - anyone any experience with them?  (Read 2785 times)
0 Members and 1 Guest are viewing this topic.
Offline Orangy Tang

JGO Kernel

Medals: 57
Projects: 11

Monkey for a head

« Posted 2011-08-24 00:12:10 »

So, Blackboards. I suspect I need something like this to hold shared/inferred state for my mission generator, and a blackboard seems to fit what I'm after. Has anyone any experience with these? At the moment I'm literally starting with a simple struct and a couple of hardcoded variable (a 'static blackboard' is the lingo I believe). However I'm not sure how this is going to expand/change as time goes on.

In particular most of the stuff of the web about blackboards seems to be about dealing with typesafety in a C/C++ blackboard. I'm wondering if there are any cunning tricks people have used that make a blackboard easier to work with in Java...

[ - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Offline delt0r

JGO Wizard

Medals: 143
Exp: 18 years

Computers can do that?

« Reply #1 - Posted 2011-08-27 09:11:26 »

I use blackboards in my game to quite good effect. One use case (not the only one) is what units to target and what priority (its a RTS). I hate it when every unit just attacks the closest, typically faster light unit while heavy hard hitting units are left free to wander up to do massive damage a few seconds later. Also indirect fire can take a long time to hit, so the unit may already be dead soon. So when a unit attacks some enemy unit it first checks the blackboard of the enemy unit to see what is already attacking and what damage is expected to be delivered and when. If it then decides to continue with the attack it writes the details on the BB. Pretty simple and works quite well.

This part of the implementation is very specific for that data, it just faster. So far i just add more add hoc stuff as it goes. There are some flags that can be set or cleared etc. I don't like generic code for generics sake.

I realized this may differ slightly from some definitions of blackboards in AI, but it is one of them. I got the idea from a AI book.

I have no special talents. I am only passionately curious.--Albert Einstein
Pages: [1]
  ignore  |  Print  

DesertCoockie (33 views)
2018-05-13 18:23:11

nelsongames (75 views)
2018-04-24 18:15:36

nelsongames (70 views)
2018-04-24 18:14:32

ivj94 (752 views)
2018-03-24 14:47:39

ivj94 (82 views)
2018-03-24 14:46:31

ivj94 (622 views)
2018-03-24 14:43:53

Solater (98 views)
2018-03-17 05:04:08

nelsongames (179 views)
2018-03-05 17:56:34

Gornova (405 views)
2018-03-02 22:15:33

buddyBro (1065 views)
2018-02-28 16:59:18
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!