It is currently 25 Apr 2024, 02:28
   
Text Size

Can devs give overview of how AI is implemented?

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Can devs give overview of how AI is implemented?

Postby flupo42 » 04 May 2016, 13:58

I have only discovered Forge a few weeks ago and having fun exploring the quest mode and what one can do in it.

Am very curious as to how you guys are implementing the game AI - I've been browsing threads in the developer section but not sure how relevant all the discussions from 2014/2015 are to the game today.

I see there are currently about 3.5k cards in the game that are marked as not playable by AI - can you guys give any info on where the challenges are with most of those?

Is it a matter of no-one having the time to script those cards for AI, or do you use some global generic algorithms that can't handle particular mechanics...?

(for example I noticed that a lot of the cards with that flag are those dealing with non-conventional costs/downsides to playing the card, like having to sacrifice permanent to use ability or maintain it in game)

How likely does it look at this point that AI will be able to handle more of those cards in the future?

How do you guys get AI to handle combat tricks and how does it plan (if at all)?

Are there any major improvements to it in the works?
flupo42
 
Posts: 6
Joined: 21 Apr 2016, 22:54
Has thanked: 3 times
Been thanked: 0 time

Re: Can devs give overview of how AI is implemented?

Postby friarsol » 05 May 2016, 18:19

The AI isn't my focus on the project, but I can give you a little bit of info.

Cards the AI is marked for -

These cards are typically things that the AI makes terrible decisions with (paying costs it shouldn't pay, activating at times that prevent it from doing other more useful actions), with the worst case being cards that the AI does illegal things with. Honestly, I doubt all of the cards marked for the AI are bad enough to be marked. There are plenty of them that the AI uses just fine in Quest decks that are built around. If people are interested in doing an audit on all of these cards we might be able to "unlock" them. We try to keep all of our mechanics as generic as possible, so they can be used across the board. Some cards get some special treatment in some cases.

I'd say it's very likely that the AI will handle more of those cards in the future. When in the future? That I can't really answer, the more developers that are interested in Forge, the more likely someone will want to help the AI play better.

Umm... I don't remember how the AI does combat tricks, but I remember when we first added the capability a few years back it surprised a bunch of people who weren't used to it. The basics were something along the lines of "if this effect can be played at instant speed, and there's no reason to do it right this second, and it might be better to do it a little bit later. Don't run this as a possible action choice"

The AI doesn't really plan. One of the developers had come in playing around with things that could do that, but I haven't seen that be worked on in a while. I think (one of) the main hurdle(s) for that was determining values for game states. Hopefully he comes back and has sometime to work on it, it'd be nice to see some progression here.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Can devs give overview of how AI is implemented?

Postby flupo42 » 05 May 2016, 20:26

Is there any point in compiling reports of wrong decisions by AI using cards marked as unusable for AI - like to save time for any dev that might be looking to fix some of those?
flupo42
 
Posts: 6
Joined: 21 Apr 2016, 22:54
Has thanked: 3 times
Been thanked: 0 time

Re: Can devs give overview of how AI is implemented?

Postby KrazyTheFox » 31 May 2016, 02:50

I'm not the developer of which friarsol spoke, as that particular project is more recent than mine. I started a different attempt at improving the AI that involves simulating future moves and predicting reactions in order to pick more likely moves. This is a huge project and it won't be done for a very long time. At the moment, it's at a bit of a standstill, though lately I've been thinking on how to progress the project. With a couple prototypes under my belt, I've identified some of the bigger hurdles to overcome (in particular, ensuring game states are synchronized, since every player, including the AI, simulates the game separately); I just haven't had the time to really sit down and plan things out. This would probably end up being more of a Forge version 3 than an improvement on the current version, as the entire game engine needs rewriting.
User avatar
KrazyTheFox
Programmer
 
Posts: 725
Joined: 18 Mar 2014, 23:51
Has thanked: 66 times
Been thanked: 226 times


Return to Forge

Who is online

Users browsing this forum: No registered users and 148 guests


Who is online

In total there are 148 users online :: 0 registered, 0 hidden and 148 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 148 guests

Login Form