Can the Gdevelop engine generate a list of possible moves?

Is it possible to make the engine generate a list of possible moves that a player will make and if its valid? I’m trying to go for something similar of a chess bot and want to see if it’s possible on Gdevelop.

Are you talking about possible moves per turn or predicting the best moves like a computer player.

For the 2nd, I remember someone talking about Minimax Algorithm in Game Theory.

Minimax Algorithm in Game Theory

I never read too much about it but the code samples seem surprisingly small. I’m sure in practice, the code would be much more advanced but AI bots are much better at Javascript than Gdevelop. It might require JavaScript. Or at least it might need less code.

I’m talking about the latter, a computer player, but I think my game might need a more efficient way of checking valid moves so I might have to look into the former as well. I’ll look into the theory and check how to implement JavaScript into the code. Thanks!

1 Like

If you look up minmax algorithm, include alpha beta pruning. It can reduce the decision tree down quite a bit and improve turn choice speed.

Okay, I’ll try looking it up, thanks!!