---
title: value
framework: gamekit
role: symbol
role_heading: Instance Property
path: gamekit/gkscore/value
---

# value

The score earned by the player.

## Declaration

```swift
var value: Int64 { get set }
```

## Discussion

Discussion You can use any algorithm you want to calculate scores in your game. Your game must set the value property before reporting a score, otherwise an error is returned. The value provided by a score object is interpreted by Game Center only when formatted for display. You determine how your scores are formatted when you define the leaderboard in App Store Connect.

## See Also

### Deprecated Methods and Properties

- [category](gamekit/gkscore/category.md)
- [context](gamekit/gkscore/context.md)
- [date](gamekit/gkscore/date.md)
- [formattedValue](gamekit/gkscore/formattedvalue.md)
- [leaderboardIdentifier](gamekit/gkscore/leaderboardidentifier.md)
- [player](gamekit/gkscore/player.md)
- [rank](gamekit/gkscore/rank.md)
- [shouldSetDefaultLeaderboard](gamekit/gkscore/shouldsetdefaultleaderboard.md)
- [init(leaderboardIdentifier:)](gamekit/gkscore/init(leaderboardidentifier:).md)
- [init(leaderboardIdentifier:player:)](gamekit/gkscore/init(leaderboardidentifier:player:).md)
- [init(category:)](gamekit/gkscore/init(category:).md)
- [init(leaderboardIdentifier:forPlayer:)](gamekit/gkscore/init(leaderboardidentifier:forplayer:).md)
- [issueChallenge(toPlayers:message:)](gamekit/gkscore/issuechallenge(toplayers:message:).md)
- [playerID](gamekit/gkscore/playerid.md)
- [report(completionHandler:)](gamekit/gkscore/report(completionhandler:).md)
