You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
379 B
23 lines
379 B
package main |
|
|
|
import ( |
|
"git.nightmare.haus/rudi/chessv2" |
|
"github.com/rudi9719/loggy" |
|
"time" |
|
) |
|
|
|
// Game is just a struct of type Game |
|
type Game struct { |
|
Game chess.Game |
|
StartTime time.Time |
|
ConvID string |
|
White string |
|
Black string |
|
Move bool |
|
} |
|
|
|
// Config struct for restarting game |
|
type Config struct { |
|
Games map[string]Game |
|
LogOpts loggy.LogOpts |
|
} |