#### [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"). [BoardSessionPlayer](https://docs.dev.board.fun/unity/api/BoardSessionPlayer.html "Board.Session.BoardSessionPlayer")

## BoardSessionPlayer.aiTypeIndex Property

Gets the index into the registered AI player types for this player.

```
public int aiTypeIndex { get; }
```

#### Property Value

[System.Int32](https://learn.microsoft.com/en-us/dotnet/api/system.int32 "System.Int32")

### Remarks

Returns -1 if this player is not an AI player ( [type](https://docs.dev.board.fun/unity/api/BoardPlayer.type.html "Board.Core.BoardPlayer.type") is not [AI](https://docs.dev.board.fun/unity/api/BoardPlayerType.md#Board.Core.BoardPlayerType.AI "Board.Core.BoardPlayerType.AI")).
