AI / Artificial Intelligence in Corona

Hello everybody!
I’m developing a game for the iPad and the iPhone and, in addition to the 2-players mode, I’d like to insert a mode where you can play against the computer.
Of course to do that I have to write the AI for the computer, but is this possible in Corona/Lua?

Or maybe, is there another way to implement something like the AI?

Thanks,
William. [import]uid: 7022 topic_id: 1266 reply_id: 301266[/import]

It is not only possible but you ONLY can do it in Corona/LUA. Well, it depends on what you want to do. I will face the point where I will port my A* routines over one day too. Not sure on how the performance will be.

But yes, any AI you can think of can be created in LUA. You just have to know how. But the great thing is that there are so many websites and books about this topic. So you don’t have to reinvent the wheel completely. [import]uid: 5712 topic_id: 1266 reply_id: 3382[/import]

Okay. Thanks Mike. I’ve already find a way to code it. [import]uid: 7022 topic_id: 1266 reply_id: 3383[/import]

A quick google search found an implementation of A* on github in Lua.

http://github.com/philnelson/A-Star-Pathfinding-For-Lua [import]uid: 5652 topic_id: 1266 reply_id: 3384[/import]