---
title: "init(id:value:)"
framework: tabletopkit
role: symbol
role_heading: Initializer
path: "tabletopkit/scorecounter/init(id:value:)"
---

# init(id:value:)

Creates a score counter with a unique identifier and initial value.

## Declaration

```swift
init(id: ScoreCounter.ID, value: Int64 = 0)
```

## Parameters

- `id`: A unique identifier of the score counter.
- `value`: The initial value of the score counter.
