---
title: "init(tableSetup:version:)"
framework: tabletopkit
role: symbol
role_heading: Initializer
path: "tabletopkit/tabletopgame/init(tablesetup:version:)"
---

# init(tableSetup:version:)

Creates a tabletop game with the specified table configuration and version of rules.

## Declaration

```swift
@MainActor init(tableSetup: TableSetup, version: Int = 0)
```

## Parameters

- `tableSetup`: The initial arrangement of seats, equipment, and counters during gameplay.
- `version`: The version of rules for this game.

## Discussion

Discussion Players can only join multiplayer games when their rules version matches other players.

## See Also

### Creating a tabletop game

- [rootPose](tabletopkit/tabletopgame/rootpose.md)
- [update(deltaTime:)](tabletopkit/tabletopgame/update(deltatime:).md)
- [withCurrentSnapshot(_:)](tabletopkit/tabletopgame/withcurrentsnapshot(_:).md)
