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.
15 lines
353 B
15 lines
353 B
public struct Move: Equatable {
|
|
public let player: Player
|
|
public let action: Action
|
|
|
|
public init(player: Player, action: Action) {
|
|
self.player = player
|
|
self.action = action
|
|
}
|
|
|
|
public enum Action: Equatable {
|
|
case InsertOnSide(side: Direction, offset: Int)
|
|
case InsertAt(where: Coords)
|
|
}
|
|
}
|