#### [Board](https://docs.dev.board.fun/unity/api/index.html "index")

### [Board.Session](https://docs.dev.board.fun/unity/api/Board.Session.html "Board\.Session"). [BoardSession](https://docs.dev.board.fun/unity/api/BoardSession.html "Board\.Session\.BoardSession")

## BoardSession.SetAIPlayerTypes(BoardAIPlayerType\[\]) Method

Registers the AI player types this game supports.

```
public static void SetAIPlayerTypes(Board.Session.BoardAIPlayerType[] types);
```

#### Parameters

`types` [BoardAIPlayerType](https://docs.dev.board.fun/unity/api/BoardAIPlayerType.html "Board\.Session\.BoardAIPlayerType") \[\] (https://learn.microsoft.com/en-us/dotnet/api/system.array "System\.Array")

Array of AI player types the game supports.

### Remarks

Call this once during game initialization, before presenting any player selectors.
The registered types determine what AI options appear in the player selector UI.
Maximum 8 AI player types are supported.
On older OS versions that do not support AI players, this is a no-op.
