2025-01-05 02:53:54 +01:00
|
|
|
package model
|
|
|
|
|
|
|
|
type PlayerID string
|
|
|
|
|
|
|
|
type Player struct {
|
2025-01-06 15:06:47 +01:00
|
|
|
ID PlayerID
|
2025-01-11 00:03:26 +01:00
|
|
|
Name string
|
2025-01-06 15:06:47 +01:00
|
|
|
Elo int
|
2025-01-05 02:53:54 +01:00
|
|
|
}
|
|
|
|
|
2025-01-11 00:03:26 +01:00
|
|
|
func NewPlayer(name string) Player {
|
2025-01-05 02:53:54 +01:00
|
|
|
return Player{
|
2025-01-11 00:03:26 +01:00
|
|
|
Name: name,
|
|
|
|
Elo: 1000,
|
2025-01-05 02:53:54 +01:00
|
|
|
}
|
|
|
|
}
|