TTac
Toggle table of contents
release
Target filter
release
Switch theme
Search in API
Skip to content
TTac
TTac
/
io.gh.kdbrian.ttac.data
/
SavedSession
/
TicTacToe
Tic
Tac
Toe
@
Serializable
@
SerialName
(
value
=
"ttt"
)
data
class
TicTacToe
(
val
savedAt
:
Long
,
val
mode
:
GameMode
,
val
size
:
Int
,
val
difficulty
:
Difficulty
?
,
val
xName
:
String
,
val
oName
:
String
,
val
xId
:
String
,
val
oId
:
String
,
val
xColor
:
Long
,
val
oColor
:
Long
,
val
xKind
:
String
,
val
oKind
:
String
,
val
board
:
String
,
val
turn
:
Mark
,
val
round
:
Int
,
val
xWins
:
Int
,
val
oWins
:
Int
,
val
draws
:
Int
)
:
SavedSession
Members
Constructors
Tic
Tac
Toe
Link copied to clipboard
constructor
(
savedAt
:
Long
,
mode
:
GameMode
,
size
:
Int
,
difficulty
:
Difficulty
?
,
xName
:
String
,
oName
:
String
,
xId
:
String
,
oId
:
String
,
xColor
:
Long
,
oColor
:
Long
,
xKind
:
String
,
oKind
:
String
,
board
:
String
,
turn
:
Mark
,
round
:
Int
,
xWins
:
Int
,
oWins
:
Int
,
draws
:
Int
)
Properties
board
Link copied to clipboard
val
board
:
String
difficulty
Link copied to clipboard
val
difficulty
:
Difficulty
?
draws
Link copied to clipboard
val
draws
:
Int
mode
Link copied to clipboard
val
mode
:
GameMode
o
Color
Link copied to clipboard
val
oColor
:
Long
o
Id
Link copied to clipboard
val
oId
:
String
o
Kind
Link copied to clipboard
val
oKind
:
String
o
Name
Link copied to clipboard
val
oName
:
String
o
Wins
Link copied to clipboard
val
oWins
:
Int
round
Link copied to clipboard
val
round
:
Int
saved
At
Link copied to clipboard
open
override
val
savedAt
:
Long
size
Link copied to clipboard
val
size
:
Int
summary
Link copied to clipboard
open
override
val
summary
:
String
A human-readable line for the "Continue" card.
turn
Link copied to clipboard
val
turn
:
Mark
x
Color
Link copied to clipboard
val
xColor
:
Long
x
Id
Link copied to clipboard
val
xId
:
String
x
Kind
Link copied to clipboard
val
xKind
:
String
"HUMAN" or "AI" per seat (LAN games aren't saved).
x
Name
Link copied to clipboard
val
xName
:
String
x
Wins
Link copied to clipboard
val
xWins
:
Int