How to create a board game that is simultaneously playing. AI vs AI.

I’m a newbie in using unity and right now I’m creating a board game which is the Abalone Game to be specific.
My problem is to make this game play automatically. I’ve already watch tutorials in making 2d games, how to make move an object, etc…
What I’ve made so far is I putted 2 objects in every block in the board: 1 for determining the position and 1 for triggering that a new object is in that particular area. What i’m lacking is the c# code for making it move on its own.

Thank you very much in advance those who can give me ideas on how to make it happen…

You need to build an API to your game. You should have a component that publishes methods to make moves in your game and a list of other components that are move makers.

Then, each turn you call the Ai component’s “MakeMove” function, passing it a reference back to the calling object so it can call the API.

Beyond that, its really an AI coding question and not a Unity question. Not knowing your particular game rules all i can make is the general suggestion that you look into the Minmax algorithm as it applies to most turn based games.