<!--
{
  "availability" : [
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TabletopKit",
  "identifier" : "/documentation/TabletopKit/TabletopGame/init(tableSetup:version:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "TabletopKit"
    ],
    "preciseIdentifier" : "s:11TabletopKit0A4GameC10tableSetup7versionAcA05TableE0V_Sitcfc"
  },
  "title" : "init(tableSetup:version:)"
}
-->

# init(tableSetup:version:)

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

```
@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

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)