Discover Packages
github.com/thunderlight-shogi/engine
internal
model
package
Version:
v0.0.0-...-f26438a
Opens a new window with list of versions in this module.
Published: Apr 15, 2024
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Move struct {
Id uint `gorm:"primarykey"`
PieceTypeId uint
HorizontalShift int
VerticalShift int
}
type PieceType struct {
Id uint `gorm:"primarykey"`
Name string
Moves []Move `gorm:"foreignKey:PieceTypeId"`
PromotePieceId *uint
PromotePiece *PieceType
Kanji rune
ImportantPiece bool
}
type StartingPositionPiece struct {
Id uint `gorm:"primarykey"`
StartingPositionId uint
PieceTypeId uint
PieceType PieceType
HorizontalOffset uint
VerticalOffset uint
Player Player
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.