Re: [Algorithms] Ideas for an AI scheme
Brought to you by:
vexxed72
From: Johan G. <spi...@gm...> - 2009-12-18 09:36:24
|
Hi just wanted to share how we did it for a very small project which was more or less a hobby project aswell, the AI was very simplistic and the way we chose to implement it was also very simplistic and was based on a binary decision tree, within code we created a number of decision nodes, we had 2 kind of nodes, binary and unary. This didnt prevent us from having multiple choices since we simply added branching nodes that depending on the input would branch left or right, by stringing them together we could create switch like statements. The neat part about this solution was that we created a graphical tool that allowed us to drag & drop nodes on a blank sheet and create both very simple or more complex AI brains very fast. This solution will not suit more advanced AI but if your game is not that demanding of the AI I can really encourage you to try it out. You also get to write a simply GUI editor! It could also be very interesting to expand on the concept and incorporate the decision trees into states etc, we never took it that far though. |