Documentation
¶
Index ¶
- Variables
- type BotRequest
- func (*BotRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BotRequest) GetBotType() BotRequest_BotCode
- func (x *BotRequest) GetEvaluationRequest() *EvaluationRequest
- func (x *BotRequest) GetGameHistory() *GameHistory
- func (x *BotRequest) GetMillisRemaining() int32
- func (*BotRequest) ProtoMessage()
- func (x *BotRequest) ProtoReflect() protoreflect.Message
- func (x *BotRequest) Reset()
- func (x *BotRequest) String() string
- type BotRequest_BotCode
- func (BotRequest_BotCode) Descriptor() protoreflect.EnumDescriptor
- func (x BotRequest_BotCode) Enum() *BotRequest_BotCode
- func (BotRequest_BotCode) EnumDescriptor() ([]byte, []int)deprecated
- func (x BotRequest_BotCode) Number() protoreflect.EnumNumber
- func (x BotRequest_BotCode) String() string
- func (BotRequest_BotCode) Type() protoreflect.EnumType
- type BotResponse
- func (*BotResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BotResponse) GetError() string
- func (x *BotResponse) GetEval() *Evaluation
- func (x *BotResponse) GetGameId() string
- func (x *BotResponse) GetMove() *GameEvent
- func (m *BotResponse) GetResponse() isBotResponse_Response
- func (*BotResponse) ProtoMessage()
- func (x *BotResponse) ProtoReflect() protoreflect.Message
- func (x *BotResponse) Reset()
- func (x *BotResponse) String() string
- type BotResponse_Error
- type BotResponse_Move
- type ChallengeRule
- func (ChallengeRule) Descriptor() protoreflect.EnumDescriptor
- func (x ChallengeRule) Enum() *ChallengeRule
- func (ChallengeRule) EnumDescriptor() ([]byte, []int)deprecated
- func (x ChallengeRule) Number() protoreflect.EnumNumber
- func (x ChallengeRule) String() string
- func (ChallengeRule) Type() protoreflect.EnumType
- type Evaluation
- type EvaluationRequest
- type GameEvent
- func (*GameEvent) Descriptor() ([]byte, []int)deprecated
- func (x *GameEvent) GetBonus() int32
- func (x *GameEvent) GetColumn() int32
- func (x *GameEvent) GetCumulative() int32
- func (x *GameEvent) GetDirection() GameEvent_Direction
- func (x *GameEvent) GetEndRackPoints() int32
- func (x *GameEvent) GetExchanged() string
- func (x *GameEvent) GetIsBingo() bool
- func (x *GameEvent) GetLostScore() int32
- func (x *GameEvent) GetMillisRemaining() int32
- func (x *GameEvent) GetNickname() stringdeprecated
- func (x *GameEvent) GetNote() string
- func (x *GameEvent) GetNumTilesFromRack() uint32
- func (x *GameEvent) GetPlayedTiles() string
- func (x *GameEvent) GetPlayerIndex() uint32
- func (x *GameEvent) GetPosition() string
- func (x *GameEvent) GetRack() string
- func (x *GameEvent) GetRow() int32
- func (x *GameEvent) GetScore() int32
- func (x *GameEvent) GetType() GameEvent_Type
- func (x *GameEvent) GetWordsFormed() []string
- func (*GameEvent) ProtoMessage()
- func (x *GameEvent) ProtoReflect() protoreflect.Message
- func (x *GameEvent) Reset()
- func (x *GameEvent) String() string
- type GameEvent_Direction
- func (GameEvent_Direction) Descriptor() protoreflect.EnumDescriptor
- func (x GameEvent_Direction) Enum() *GameEvent_Direction
- func (GameEvent_Direction) EnumDescriptor() ([]byte, []int)deprecated
- func (x GameEvent_Direction) Number() protoreflect.EnumNumber
- func (x GameEvent_Direction) String() string
- func (GameEvent_Direction) Type() protoreflect.EnumType
- type GameEvent_Type
- func (GameEvent_Type) Descriptor() protoreflect.EnumDescriptor
- func (x GameEvent_Type) Enum() *GameEvent_Type
- func (GameEvent_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x GameEvent_Type) Number() protoreflect.EnumNumber
- func (x GameEvent_Type) String() string
- func (GameEvent_Type) Type() protoreflect.EnumType
- type GameHistory
- func (*GameHistory) Descriptor() ([]byte, []int)deprecated
- func (x *GameHistory) GetBoardLayout() string
- func (x *GameHistory) GetChallengeRule() ChallengeRule
- func (x *GameHistory) GetDescription() string
- func (x *GameHistory) GetEvents() []*GameEvent
- func (x *GameHistory) GetFinalScores() []int32
- func (x *GameHistory) GetIdAuth() string
- func (x *GameHistory) GetLastKnownRacks() []string
- func (x *GameHistory) GetLetterDistribution() string
- func (x *GameHistory) GetLexicon() string
- func (x *GameHistory) GetOriginalGcg() string
- func (x *GameHistory) GetPlayState() PlayState
- func (x *GameHistory) GetPlayers() []*PlayerInfo
- func (x *GameHistory) GetSecondWentFirst() booldeprecated
- func (x *GameHistory) GetStartingCgp() string
- func (x *GameHistory) GetTitle() string
- func (x *GameHistory) GetUid() string
- func (x *GameHistory) GetVariant() string
- func (x *GameHistory) GetVersion() int32
- func (x *GameHistory) GetWinner() int32
- func (*GameHistory) ProtoMessage()
- func (x *GameHistory) ProtoReflect() protoreflect.Message
- func (x *GameHistory) Reset()
- func (x *GameHistory) String() string
- type PlayState
- type PlayerInfo
- func (*PlayerInfo) Descriptor() ([]byte, []int)deprecated
- func (x *PlayerInfo) GetNickname() string
- func (x *PlayerInfo) GetRealName() string
- func (x *PlayerInfo) GetUserId() string
- func (*PlayerInfo) ProtoMessage()
- func (x *PlayerInfo) ProtoReflect() protoreflect.Message
- func (x *PlayerInfo) Reset()
- func (x *PlayerInfo) String() string
- type PuzzleBucket
- func (*PuzzleBucket) Descriptor() ([]byte, []int)deprecated
- func (x *PuzzleBucket) GetExcludes() []PuzzleTag
- func (x *PuzzleBucket) GetIncludes() []PuzzleTag
- func (x *PuzzleBucket) GetIndex() int32
- func (x *PuzzleBucket) GetSize() int32
- func (*PuzzleBucket) ProtoMessage()
- func (x *PuzzleBucket) ProtoReflect() protoreflect.Message
- func (x *PuzzleBucket) Reset()
- func (x *PuzzleBucket) String() string
- type PuzzleCreationResponse
- func (*PuzzleCreationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PuzzleCreationResponse) GetAnswer() *GameEvent
- func (x *PuzzleCreationResponse) GetBucketIndex() int32
- func (x *PuzzleCreationResponse) GetGameId() string
- func (x *PuzzleCreationResponse) GetTags() []PuzzleTag
- func (x *PuzzleCreationResponse) GetTurnNumber() int32
- func (*PuzzleCreationResponse) ProtoMessage()
- func (x *PuzzleCreationResponse) ProtoReflect() protoreflect.Message
- func (x *PuzzleCreationResponse) Reset()
- func (x *PuzzleCreationResponse) String() string
- type PuzzleGenerationRequest
- func (*PuzzleGenerationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PuzzleGenerationRequest) GetBuckets() []*PuzzleBucket
- func (*PuzzleGenerationRequest) ProtoMessage()
- func (x *PuzzleGenerationRequest) ProtoReflect() protoreflect.Message
- func (x *PuzzleGenerationRequest) Reset()
- func (x *PuzzleGenerationRequest) String() string
- type PuzzleTag
- type SingleEvaluation
- func (*SingleEvaluation) Descriptor() ([]byte, []int)deprecated
- func (x *SingleEvaluation) GetEquityLoss() float64
- func (x *SingleEvaluation) GetMissedBingo() bool
- func (x *SingleEvaluation) GetMissedStarPlay() bool
- func (x *SingleEvaluation) GetPossibleStarPlay() bool
- func (x *SingleEvaluation) GetTopIsBingo() bool
- func (x *SingleEvaluation) GetWinPctLoss() float64
- func (*SingleEvaluation) ProtoMessage()
- func (x *SingleEvaluation) ProtoReflect() protoreflect.Message
- func (x *SingleEvaluation) Reset()
- func (x *SingleEvaluation) String() string
Constants ¶
This section is empty.
Variables ¶
var ( PlayState_name = map[int32]string{ 0: "PLAYING", 1: "WAITING_FOR_FINAL_PASS", 2: "GAME_OVER", } PlayState_value = map[string]int32{ "PLAYING": 0, "WAITING_FOR_FINAL_PASS": 1, "GAME_OVER": 2, } )
Enum value maps for PlayState.
var ( ChallengeRule_name = map[int32]string{ 0: "VOID", 1: "SINGLE", 2: "DOUBLE", 3: "FIVE_POINT", 4: "TEN_POINT", 5: "TRIPLE", } ChallengeRule_value = map[string]int32{ "VOID": 0, "SINGLE": 1, "DOUBLE": 2, "FIVE_POINT": 3, "TEN_POINT": 4, "TRIPLE": 5, } )
Enum value maps for ChallengeRule.
var ( PuzzleTag_name = map[int32]string{ 0: "EQUITY", 1: "BINGO", 2: "ONLY_BINGO", 3: "BLANK_BINGO", 4: "NON_BINGO", 5: "POWER_TILE", 6: "BINGO_NINE_OR_ABOVE", 7: "CEL_ONLY", } PuzzleTag_value = map[string]int32{ "EQUITY": 0, "BINGO": 1, "ONLY_BINGO": 2, "BLANK_BINGO": 3, "NON_BINGO": 4, "POWER_TILE": 5, "BINGO_NINE_OR_ABOVE": 6, "CEL_ONLY": 7, } )
Enum value maps for PuzzleTag.
var ( GameEvent_Type_name = map[int32]string{ 0: "TILE_PLACEMENT_MOVE", 1: "PHONY_TILES_RETURNED", 2: "PASS", 3: "CHALLENGE_BONUS", 4: "EXCHANGE", 5: "END_RACK_PTS", 6: "TIME_PENALTY", 7: "END_RACK_PENALTY", 8: "UNSUCCESSFUL_CHALLENGE_TURN_LOSS", 9: "CHALLENGE", } GameEvent_Type_value = map[string]int32{ "TILE_PLACEMENT_MOVE": 0, "PHONY_TILES_RETURNED": 1, "PASS": 2, "CHALLENGE_BONUS": 3, "EXCHANGE": 4, "END_RACK_PTS": 5, "TIME_PENALTY": 6, "END_RACK_PENALTY": 7, "UNSUCCESSFUL_CHALLENGE_TURN_LOSS": 8, "CHALLENGE": 9, } )
Enum value maps for GameEvent_Type.
var ( GameEvent_Direction_name = map[int32]string{ 0: "HORIZONTAL", 1: "VERTICAL", } GameEvent_Direction_value = map[string]int32{ "HORIZONTAL": 0, "VERTICAL": 1, } )
Enum value maps for GameEvent_Direction.
var ( BotRequest_BotCode_name = map[int32]string{ 0: "HASTY_BOT", 1: "LEVEL1_CEL_BOT", 2: "LEVEL2_CEL_BOT", 3: "LEVEL3_CEL_BOT", 4: "LEVEL4_CEL_BOT", 5: "LEVEL1_PROBABILISTIC", 6: "LEVEL2_PROBABILISTIC", 7: "LEVEL3_PROBABILISTIC", 8: "LEVEL4_PROBABILISTIC", 9: "LEVEL5_PROBABILISTIC", 10: "NO_LEAVE_BOT", 11: "SIMMING_BOT", 12: "HASTY_PLUS_ENDGAME_BOT", 13: "SIMMING_INFER_BOT", 100: "UNKNOWN", } BotRequest_BotCode_value = map[string]int32{ "HASTY_BOT": 0, "LEVEL1_CEL_BOT": 1, "LEVEL2_CEL_BOT": 2, "LEVEL3_CEL_BOT": 3, "LEVEL4_CEL_BOT": 4, "LEVEL1_PROBABILISTIC": 5, "LEVEL2_PROBABILISTIC": 6, "LEVEL3_PROBABILISTIC": 7, "LEVEL4_PROBABILISTIC": 8, "LEVEL5_PROBABILISTIC": 9, "NO_LEAVE_BOT": 10, "SIMMING_BOT": 11, "HASTY_PLUS_ENDGAME_BOT": 12, "SIMMING_INFER_BOT": 13, "UNKNOWN": 100, } )
Enum value maps for BotRequest_BotCode.
var File_api_proto_macondo_macondo_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type BotRequest ¶ added in v0.4.5
type BotRequest struct { GameHistory *GameHistory `protobuf:"bytes,1,opt,name=game_history,json=gameHistory,proto3" json:"game_history,omitempty"` EvaluationRequest *EvaluationRequest `protobuf:"bytes,2,opt,name=evaluation_request,json=evaluationRequest,proto3" json:"evaluation_request,omitempty"` BotType BotRequest_BotCode `protobuf:"varint,3,opt,name=bot_type,json=botType,proto3,enum=macondo.BotRequest_BotCode" json:"bot_type,omitempty"` MillisRemaining int32 `protobuf:"varint,4,opt,name=millis_remaining,json=millisRemaining,proto3" json:"millis_remaining,omitempty"` // contains filtered or unexported fields }
func (*BotRequest) Descriptor
deprecated
added in
v0.4.5
func (*BotRequest) Descriptor() ([]byte, []int)
Deprecated: Use BotRequest.ProtoReflect.Descriptor instead.
func (*BotRequest) GetBotType ¶ added in v0.4.5
func (x *BotRequest) GetBotType() BotRequest_BotCode
func (*BotRequest) GetEvaluationRequest ¶ added in v0.4.5
func (x *BotRequest) GetEvaluationRequest() *EvaluationRequest
func (*BotRequest) GetGameHistory ¶ added in v0.4.5
func (x *BotRequest) GetGameHistory() *GameHistory
func (*BotRequest) GetMillisRemaining ¶ added in v0.8.6
func (x *BotRequest) GetMillisRemaining() int32
func (*BotRequest) ProtoMessage ¶ added in v0.4.5
func (*BotRequest) ProtoMessage()
func (*BotRequest) ProtoReflect ¶ added in v0.4.5
func (x *BotRequest) ProtoReflect() protoreflect.Message
func (*BotRequest) Reset ¶ added in v0.4.5
func (x *BotRequest) Reset()
func (*BotRequest) String ¶ added in v0.4.5
func (x *BotRequest) String() string
type BotRequest_BotCode ¶ added in v0.4.5
type BotRequest_BotCode int32
const ( BotRequest_HASTY_BOT BotRequest_BotCode = 0 BotRequest_LEVEL1_CEL_BOT BotRequest_BotCode = 1 BotRequest_LEVEL2_CEL_BOT BotRequest_BotCode = 2 BotRequest_LEVEL3_CEL_BOT BotRequest_BotCode = 3 BotRequest_LEVEL4_CEL_BOT BotRequest_BotCode = 4 BotRequest_LEVEL1_PROBABILISTIC BotRequest_BotCode = 5 BotRequest_LEVEL2_PROBABILISTIC BotRequest_BotCode = 6 BotRequest_LEVEL3_PROBABILISTIC BotRequest_BotCode = 7 BotRequest_LEVEL4_PROBABILISTIC BotRequest_BotCode = 8 BotRequest_LEVEL5_PROBABILISTIC BotRequest_BotCode = 9 BotRequest_NO_LEAVE_BOT BotRequest_BotCode = 10 BotRequest_SIMMING_BOT BotRequest_BotCode = 11 BotRequest_HASTY_PLUS_ENDGAME_BOT BotRequest_BotCode = 12 BotRequest_SIMMING_INFER_BOT BotRequest_BotCode = 13 // harder bots here? inference? ml, etc. // This should have probably been number 0. BotRequest_UNKNOWN BotRequest_BotCode = 100 )
func (BotRequest_BotCode) Descriptor ¶ added in v0.4.5
func (BotRequest_BotCode) Descriptor() protoreflect.EnumDescriptor
func (BotRequest_BotCode) Enum ¶ added in v0.4.5
func (x BotRequest_BotCode) Enum() *BotRequest_BotCode
func (BotRequest_BotCode) EnumDescriptor
deprecated
added in
v0.4.5
func (BotRequest_BotCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use BotRequest_BotCode.Descriptor instead.
func (BotRequest_BotCode) Number ¶ added in v0.4.5
func (x BotRequest_BotCode) Number() protoreflect.EnumNumber
func (BotRequest_BotCode) String ¶ added in v0.4.5
func (x BotRequest_BotCode) String() string
func (BotRequest_BotCode) Type ¶ added in v0.4.5
func (BotRequest_BotCode) Type() protoreflect.EnumType
type BotResponse ¶ added in v0.4.5
type BotResponse struct { // Types that are assignable to Response: // // *BotResponse_Move // *BotResponse_Error Response isBotResponse_Response `protobuf_oneof:"response"` Eval *Evaluation `protobuf:"bytes,3,opt,name=eval,proto3" json:"eval,omitempty"` GameId string `protobuf:"bytes,4,opt,name=game_id,json=gameId,proto3" json:"game_id,omitempty"` // contains filtered or unexported fields }
func (*BotResponse) Descriptor
deprecated
added in
v0.4.5
func (*BotResponse) Descriptor() ([]byte, []int)
Deprecated: Use BotResponse.ProtoReflect.Descriptor instead.
func (*BotResponse) GetError ¶ added in v0.4.5
func (x *BotResponse) GetError() string
func (*BotResponse) GetEval ¶ added in v0.4.5
func (x *BotResponse) GetEval() *Evaluation
func (*BotResponse) GetGameId ¶ added in v0.4.13
func (x *BotResponse) GetGameId() string
func (*BotResponse) GetMove ¶ added in v0.4.5
func (x *BotResponse) GetMove() *GameEvent
func (*BotResponse) GetResponse ¶ added in v0.4.5
func (m *BotResponse) GetResponse() isBotResponse_Response
func (*BotResponse) ProtoMessage ¶ added in v0.4.5
func (*BotResponse) ProtoMessage()
func (*BotResponse) ProtoReflect ¶ added in v0.4.5
func (x *BotResponse) ProtoReflect() protoreflect.Message
func (*BotResponse) Reset ¶ added in v0.4.5
func (x *BotResponse) Reset()
func (*BotResponse) String ¶ added in v0.4.5
func (x *BotResponse) String() string
type BotResponse_Error ¶ added in v0.4.5
type BotResponse_Error struct {
Error string `protobuf:"bytes,2,opt,name=error,proto3,oneof"`
}
type BotResponse_Move ¶ added in v0.4.5
type BotResponse_Move struct {
Move *GameEvent `protobuf:"bytes,1,opt,name=move,proto3,oneof"`
}
type ChallengeRule ¶ added in v0.4.5
type ChallengeRule int32
const ( ChallengeRule_VOID ChallengeRule = 0 ChallengeRule_SINGLE ChallengeRule = 1 ChallengeRule_DOUBLE ChallengeRule = 2 ChallengeRule_FIVE_POINT ChallengeRule = 3 ChallengeRule_TEN_POINT ChallengeRule = 4 ChallengeRule_TRIPLE ChallengeRule = 5 )
func (ChallengeRule) Descriptor ¶ added in v0.4.5
func (ChallengeRule) Descriptor() protoreflect.EnumDescriptor
func (ChallengeRule) Enum ¶ added in v0.4.5
func (x ChallengeRule) Enum() *ChallengeRule
func (ChallengeRule) EnumDescriptor
deprecated
added in
v0.4.5
func (ChallengeRule) EnumDescriptor() ([]byte, []int)
Deprecated: Use ChallengeRule.Descriptor instead.
func (ChallengeRule) Number ¶ added in v0.4.5
func (x ChallengeRule) Number() protoreflect.EnumNumber
func (ChallengeRule) String ¶ added in v0.4.5
func (x ChallengeRule) String() string
func (ChallengeRule) Type ¶ added in v0.4.5
func (ChallengeRule) Type() protoreflect.EnumType
type Evaluation ¶ added in v0.4.5
type Evaluation struct { PlayEval []*SingleEvaluation `protobuf:"bytes,1,rep,name=play_eval,json=playEval,proto3" json:"play_eval,omitempty"` // contains filtered or unexported fields }
func (*Evaluation) Descriptor
deprecated
added in
v0.4.5
func (*Evaluation) Descriptor() ([]byte, []int)
Deprecated: Use Evaluation.ProtoReflect.Descriptor instead.
func (*Evaluation) GetPlayEval ¶ added in v0.4.5
func (x *Evaluation) GetPlayEval() []*SingleEvaluation
func (*Evaluation) ProtoMessage ¶ added in v0.4.5
func (*Evaluation) ProtoMessage()
func (*Evaluation) ProtoReflect ¶ added in v0.4.5
func (x *Evaluation) ProtoReflect() protoreflect.Message
func (*Evaluation) Reset ¶ added in v0.4.5
func (x *Evaluation) Reset()
func (*Evaluation) String ¶ added in v0.4.5
func (x *Evaluation) String() string
type EvaluationRequest ¶ added in v0.4.5
type EvaluationRequest struct { // Evaluate for this user User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // Later: evaluation type (static/sim/etc) // contains filtered or unexported fields }
func (*EvaluationRequest) Descriptor
deprecated
added in
v0.4.5
func (*EvaluationRequest) Descriptor() ([]byte, []int)
Deprecated: Use EvaluationRequest.ProtoReflect.Descriptor instead.
func (*EvaluationRequest) GetUser ¶ added in v0.4.5
func (x *EvaluationRequest) GetUser() string
func (*EvaluationRequest) ProtoMessage ¶ added in v0.4.5
func (*EvaluationRequest) ProtoMessage()
func (*EvaluationRequest) ProtoReflect ¶ added in v0.4.5
func (x *EvaluationRequest) ProtoReflect() protoreflect.Message
func (*EvaluationRequest) Reset ¶ added in v0.4.5
func (x *EvaluationRequest) Reset()
func (*EvaluationRequest) String ¶ added in v0.4.5
func (x *EvaluationRequest) String() string
type GameEvent ¶
type GameEvent struct { // Deprecated: Marked as deprecated in api/proto/macondo/macondo.proto. Nickname string `protobuf:"bytes,1,opt,name=nickname,proto3" json:"nickname,omitempty"` Note string `protobuf:"bytes,2,opt,name=note,proto3" json:"note,omitempty"` Rack string `protobuf:"bytes,3,opt,name=rack,proto3" json:"rack,omitempty"` Type GameEvent_Type `protobuf:"varint,4,opt,name=type,proto3,enum=macondo.GameEvent_Type" json:"type,omitempty"` Cumulative int32 `protobuf:"varint,5,opt,name=cumulative,proto3" json:"cumulative,omitempty"` Row int32 `protobuf:"varint,6,opt,name=row,proto3" json:"row,omitempty"` Column int32 `protobuf:"varint,7,opt,name=column,proto3" json:"column,omitempty"` Direction GameEvent_Direction `protobuf:"varint,8,opt,name=direction,proto3,enum=macondo.GameEvent_Direction" json:"direction,omitempty"` Position string `protobuf:"bytes,9,opt,name=position,proto3" json:"position,omitempty"` PlayedTiles string `protobuf:"bytes,10,opt,name=played_tiles,json=playedTiles,proto3" json:"played_tiles,omitempty"` // An event will not have all of these; it depends on the type of the event. Exchanged string `protobuf:"bytes,11,opt,name=exchanged,proto3" json:"exchanged,omitempty"` Score int32 `protobuf:"varint,12,opt,name=score,proto3" json:"score,omitempty"` Bonus int32 `protobuf:"varint,13,opt,name=bonus,proto3" json:"bonus,omitempty"` EndRackPoints int32 `protobuf:"varint,14,opt,name=end_rack_points,json=endRackPoints,proto3" json:"end_rack_points,omitempty"` LostScore int32 `protobuf:"varint,15,opt,name=lost_score,json=lostScore,proto3" json:"lost_score,omitempty"` IsBingo bool `protobuf:"varint,16,opt,name=is_bingo,json=isBingo,proto3" json:"is_bingo,omitempty"` // words_formed is a list of all words made by this play, in user-visible // pretty form. The first word is the "main" word, anything after it are // cross-words. WordsFormed []string `protobuf:"bytes,17,rep,name=words_formed,json=wordsFormed,proto3" json:"words_formed,omitempty"` MillisRemaining int32 `protobuf:"varint,18,opt,name=millis_remaining,json=millisRemaining,proto3" json:"millis_remaining,omitempty"` // The player who played this move is encoded in player_index. This should // be the index in GameHistory.players. PlayerIndex uint32 `protobuf:"varint,19,opt,name=player_index,json=playerIndex,proto3" json:"player_index,omitempty"` // num_tiles_from_rack lets us know how many tiles from the rack were either // played or exchanged. It is only populated for those two fields. NumTilesFromRack uint32 `protobuf:"varint,20,opt,name=num_tiles_from_rack,json=numTilesFromRack,proto3" json:"num_tiles_from_rack,omitempty"` // contains filtered or unexported fields }
This should be merged into Move.
func (*GameEvent) Descriptor
deprecated
func (*GameEvent) GetCumulative ¶
func (*GameEvent) GetDirection ¶
func (x *GameEvent) GetDirection() GameEvent_Direction
func (*GameEvent) GetEndRackPoints ¶
func (*GameEvent) GetExchanged ¶
func (*GameEvent) GetIsBingo ¶
func (*GameEvent) GetLostScore ¶
func (*GameEvent) GetMillisRemaining ¶ added in v0.4.5
func (*GameEvent) GetNickname
deprecated
func (*GameEvent) GetNumTilesFromRack ¶ added in v0.6.7
func (*GameEvent) GetPlayedTiles ¶
func (*GameEvent) GetPlayerIndex ¶ added in v0.4.5
func (*GameEvent) GetPosition ¶
func (*GameEvent) GetType ¶
func (x *GameEvent) GetType() GameEvent_Type
func (*GameEvent) GetWordsFormed ¶ added in v0.4.5
func (*GameEvent) ProtoMessage ¶
func (*GameEvent) ProtoMessage()
func (*GameEvent) ProtoReflect ¶
func (x *GameEvent) ProtoReflect() protoreflect.Message
type GameEvent_Direction ¶
type GameEvent_Direction int32
const ( GameEvent_HORIZONTAL GameEvent_Direction = 0 GameEvent_VERTICAL GameEvent_Direction = 1 )
func (GameEvent_Direction) Descriptor ¶
func (GameEvent_Direction) Descriptor() protoreflect.EnumDescriptor
func (GameEvent_Direction) Enum ¶
func (x GameEvent_Direction) Enum() *GameEvent_Direction
func (GameEvent_Direction) EnumDescriptor
deprecated
func (GameEvent_Direction) EnumDescriptor() ([]byte, []int)
Deprecated: Use GameEvent_Direction.Descriptor instead.
func (GameEvent_Direction) Number ¶
func (x GameEvent_Direction) Number() protoreflect.EnumNumber
func (GameEvent_Direction) String ¶
func (x GameEvent_Direction) String() string
func (GameEvent_Direction) Type ¶
func (GameEvent_Direction) Type() protoreflect.EnumType
type GameEvent_Type ¶
type GameEvent_Type int32
const ( GameEvent_TILE_PLACEMENT_MOVE GameEvent_Type = 0 GameEvent_PHONY_TILES_RETURNED GameEvent_Type = 1 GameEvent_PASS GameEvent_Type = 2 GameEvent_CHALLENGE_BONUS GameEvent_Type = 3 GameEvent_EXCHANGE GameEvent_Type = 4 GameEvent_END_RACK_PTS GameEvent_Type = 5 GameEvent_TIME_PENALTY GameEvent_Type = 6 // Only for international rules (or after 6 zeroes) GameEvent_END_RACK_PENALTY GameEvent_Type = 7 // Lose a turn for challenging a word incorrectly (only for double // challenge) GameEvent_UNSUCCESSFUL_CHALLENGE_TURN_LOSS GameEvent_Type = 8 // Issue a challenge GameEvent_CHALLENGE GameEvent_Type = 9 )
func (GameEvent_Type) Descriptor ¶
func (GameEvent_Type) Descriptor() protoreflect.EnumDescriptor
func (GameEvent_Type) Enum ¶
func (x GameEvent_Type) Enum() *GameEvent_Type
func (GameEvent_Type) EnumDescriptor
deprecated
func (GameEvent_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use GameEvent_Type.Descriptor instead.
func (GameEvent_Type) Number ¶
func (x GameEvent_Type) Number() protoreflect.EnumNumber
func (GameEvent_Type) String ¶
func (x GameEvent_Type) String() string
func (GameEvent_Type) Type ¶
func (GameEvent_Type) Type() protoreflect.EnumType
type GameHistory ¶
type GameHistory struct { Events []*GameEvent `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` // players are in order of who went first. Players []*PlayerInfo `protobuf:"bytes,2,rep,name=players,proto3" json:"players,omitempty"` Version int32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` OriginalGcg string `protobuf:"bytes,4,opt,name=original_gcg,json=originalGcg,proto3" json:"original_gcg,omitempty"` Lexicon string `protobuf:"bytes,5,opt,name=lexicon,proto3" json:"lexicon,omitempty"` IdAuth string `protobuf:"bytes,6,opt,name=id_auth,json=idAuth,proto3" json:"id_auth,omitempty"` Uid string `protobuf:"bytes,7,opt,name=uid,proto3" json:"uid,omitempty"` Title string `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,9,opt,name=description,proto3" json:"description,omitempty"` // last_known_racks should only be set in an incomplete / in-progress game. // if set, player racks should be set to these values. LastKnownRacks []string `protobuf:"bytes,10,rep,name=last_known_racks,json=lastKnownRacks,proto3" json:"last_known_racks,omitempty"` // Add letter distribution (basically game name), board config, and more // in the future. // // Deprecated: Marked as deprecated in api/proto/macondo/macondo.proto. SecondWentFirst bool `protobuf:"varint,11,opt,name=second_went_first,json=secondWentFirst,proto3" json:"second_went_first,omitempty"` ChallengeRule ChallengeRule `` /* 129-byte string literal not displayed */ PlayState PlayState `protobuf:"varint,13,opt,name=play_state,json=playState,proto3,enum=macondo.PlayState" json:"play_state,omitempty"` // Final scores of the game; the order is in the order of the listed players! FinalScores []int32 `protobuf:"varint,14,rep,packed,name=final_scores,json=finalScores,proto3" json:"final_scores,omitempty"` // The variant is the game variant used. If blank, should // default to "classic". Variant string `protobuf:"bytes,15,opt,name=variant,proto3" json:"variant,omitempty"` // The index of the player who won. It's not always the person with the // highest score, because there can be timeouts, etc. If it's a tie, // it will be a -1. Winner int32 `protobuf:"varint,16,opt,name=winner,proto3" json:"winner,omitempty"` // The board layout is just the name for the layout of the board. // It should have a sensible default, if blank. BoardLayout string `protobuf:"bytes,17,opt,name=board_layout,json=boardLayout,proto3" json:"board_layout,omitempty"` // The letter distribution is the name of the distribution of tiles used for // this game. If blank, should default to "english". LetterDistribution string `protobuf:"bytes,18,opt,name=letter_distribution,json=letterDistribution,proto3" json:"letter_distribution,omitempty"` // If provided, the starting CGP is a crossword-game position string. StartingCgp string `protobuf:"bytes,19,opt,name=starting_cgp,json=startingCgp,proto3" json:"starting_cgp,omitempty"` // contains filtered or unexported fields }
GameHistory encodes a whole history of a game, and it should also encode the initial board and tile configuration, etc. It can be considered to be an instantiation of a GCG file.
func (*GameHistory) Descriptor
deprecated
func (*GameHistory) Descriptor() ([]byte, []int)
Deprecated: Use GameHistory.ProtoReflect.Descriptor instead.
func (*GameHistory) GetBoardLayout ¶ added in v0.4.5
func (x *GameHistory) GetBoardLayout() string
func (*GameHistory) GetChallengeRule ¶ added in v0.4.5
func (x *GameHistory) GetChallengeRule() ChallengeRule
func (*GameHistory) GetDescription ¶
func (x *GameHistory) GetDescription() string
func (*GameHistory) GetEvents ¶ added in v0.4.5
func (x *GameHistory) GetEvents() []*GameEvent
func (*GameHistory) GetFinalScores ¶ added in v0.4.5
func (x *GameHistory) GetFinalScores() []int32
func (*GameHistory) GetIdAuth ¶
func (x *GameHistory) GetIdAuth() string
func (*GameHistory) GetLastKnownRacks ¶
func (x *GameHistory) GetLastKnownRacks() []string
func (*GameHistory) GetLetterDistribution ¶ added in v0.4.5
func (x *GameHistory) GetLetterDistribution() string
func (*GameHistory) GetLexicon ¶
func (x *GameHistory) GetLexicon() string
func (*GameHistory) GetOriginalGcg ¶
func (x *GameHistory) GetOriginalGcg() string
func (*GameHistory) GetPlayState ¶ added in v0.4.5
func (x *GameHistory) GetPlayState() PlayState
func (*GameHistory) GetPlayers ¶
func (x *GameHistory) GetPlayers() []*PlayerInfo
func (*GameHistory) GetSecondWentFirst
deprecated
added in
v0.4.5
func (x *GameHistory) GetSecondWentFirst() bool
Deprecated: Marked as deprecated in api/proto/macondo/macondo.proto.
func (*GameHistory) GetStartingCgp ¶ added in v0.4.5
func (x *GameHistory) GetStartingCgp() string
func (*GameHistory) GetTitle ¶
func (x *GameHistory) GetTitle() string
func (*GameHistory) GetUid ¶
func (x *GameHistory) GetUid() string
func (*GameHistory) GetVariant ¶ added in v0.4.5
func (x *GameHistory) GetVariant() string
func (*GameHistory) GetVersion ¶
func (x *GameHistory) GetVersion() int32
func (*GameHistory) GetWinner ¶ added in v0.4.5
func (x *GameHistory) GetWinner() int32
func (*GameHistory) ProtoMessage ¶
func (*GameHistory) ProtoMessage()
func (*GameHistory) ProtoReflect ¶
func (x *GameHistory) ProtoReflect() protoreflect.Message
func (*GameHistory) Reset ¶
func (x *GameHistory) Reset()
func (*GameHistory) String ¶
func (x *GameHistory) String() string
type PlayState ¶ added in v0.4.5
type PlayState int32
func (PlayState) Descriptor ¶ added in v0.4.5
func (PlayState) Descriptor() protoreflect.EnumDescriptor
func (PlayState) EnumDescriptor
deprecated
added in
v0.4.5
func (PlayState) Number ¶ added in v0.4.5
func (x PlayState) Number() protoreflect.EnumNumber
func (PlayState) Type ¶ added in v0.4.5
func (PlayState) Type() protoreflect.EnumType
type PlayerInfo ¶
type PlayerInfo struct { Nickname string `protobuf:"bytes,1,opt,name=nickname,proto3" json:"nickname,omitempty"` RealName string `protobuf:"bytes,2,opt,name=real_name,json=realName,proto3" json:"real_name,omitempty"` // user_id is an internal, unchangeable user ID, whereas the other two user // identifiers might possibly be mutable. UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*PlayerInfo) Descriptor
deprecated
func (*PlayerInfo) Descriptor() ([]byte, []int)
Deprecated: Use PlayerInfo.ProtoReflect.Descriptor instead.
func (*PlayerInfo) GetNickname ¶
func (x *PlayerInfo) GetNickname() string
func (*PlayerInfo) GetRealName ¶
func (x *PlayerInfo) GetRealName() string
func (*PlayerInfo) GetUserId ¶ added in v0.4.5
func (x *PlayerInfo) GetUserId() string
func (*PlayerInfo) ProtoMessage ¶
func (*PlayerInfo) ProtoMessage()
func (*PlayerInfo) ProtoReflect ¶
func (x *PlayerInfo) ProtoReflect() protoreflect.Message
func (*PlayerInfo) Reset ¶
func (x *PlayerInfo) Reset()
func (*PlayerInfo) String ¶
func (x *PlayerInfo) String() string
type PuzzleBucket ¶ added in v0.4.5
type PuzzleBucket struct { Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` Size int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` Includes []PuzzleTag `protobuf:"varint,3,rep,packed,name=includes,proto3,enum=macondo.PuzzleTag" json:"includes,omitempty"` Excludes []PuzzleTag `protobuf:"varint,4,rep,packed,name=excludes,proto3,enum=macondo.PuzzleTag" json:"excludes,omitempty"` // contains filtered or unexported fields }
func (*PuzzleBucket) Descriptor
deprecated
added in
v0.4.5
func (*PuzzleBucket) Descriptor() ([]byte, []int)
Deprecated: Use PuzzleBucket.ProtoReflect.Descriptor instead.
func (*PuzzleBucket) GetExcludes ¶ added in v0.4.5
func (x *PuzzleBucket) GetExcludes() []PuzzleTag
func (*PuzzleBucket) GetIncludes ¶ added in v0.4.5
func (x *PuzzleBucket) GetIncludes() []PuzzleTag
func (*PuzzleBucket) GetIndex ¶ added in v0.4.5
func (x *PuzzleBucket) GetIndex() int32
func (*PuzzleBucket) GetSize ¶ added in v0.4.5
func (x *PuzzleBucket) GetSize() int32
func (*PuzzleBucket) ProtoMessage ¶ added in v0.4.5
func (*PuzzleBucket) ProtoMessage()
func (*PuzzleBucket) ProtoReflect ¶ added in v0.4.5
func (x *PuzzleBucket) ProtoReflect() protoreflect.Message
func (*PuzzleBucket) Reset ¶ added in v0.4.5
func (x *PuzzleBucket) Reset()
func (*PuzzleBucket) String ¶ added in v0.4.5
func (x *PuzzleBucket) String() string
type PuzzleCreationResponse ¶ added in v0.4.5
type PuzzleCreationResponse struct { GameId string `protobuf:"bytes,1,opt,name=game_id,json=gameId,proto3" json:"game_id,omitempty"` TurnNumber int32 `protobuf:"varint,2,opt,name=turn_number,json=turnNumber,proto3" json:"turn_number,omitempty"` Answer *GameEvent `protobuf:"bytes,3,opt,name=answer,proto3" json:"answer,omitempty"` Tags []PuzzleTag `protobuf:"varint,4,rep,packed,name=tags,proto3,enum=macondo.PuzzleTag" json:"tags,omitempty"` BucketIndex int32 `protobuf:"varint,5,opt,name=bucket_index,json=bucketIndex,proto3" json:"bucket_index,omitempty"` // contains filtered or unexported fields }
func (*PuzzleCreationResponse) Descriptor
deprecated
added in
v0.4.5
func (*PuzzleCreationResponse) Descriptor() ([]byte, []int)
Deprecated: Use PuzzleCreationResponse.ProtoReflect.Descriptor instead.
func (*PuzzleCreationResponse) GetAnswer ¶ added in v0.4.5
func (x *PuzzleCreationResponse) GetAnswer() *GameEvent
func (*PuzzleCreationResponse) GetBucketIndex ¶ added in v0.4.5
func (x *PuzzleCreationResponse) GetBucketIndex() int32
func (*PuzzleCreationResponse) GetGameId ¶ added in v0.4.5
func (x *PuzzleCreationResponse) GetGameId() string
func (*PuzzleCreationResponse) GetTags ¶ added in v0.4.5
func (x *PuzzleCreationResponse) GetTags() []PuzzleTag
func (*PuzzleCreationResponse) GetTurnNumber ¶ added in v0.4.5
func (x *PuzzleCreationResponse) GetTurnNumber() int32
func (*PuzzleCreationResponse) ProtoMessage ¶ added in v0.4.5
func (*PuzzleCreationResponse) ProtoMessage()
func (*PuzzleCreationResponse) ProtoReflect ¶ added in v0.4.5
func (x *PuzzleCreationResponse) ProtoReflect() protoreflect.Message
func (*PuzzleCreationResponse) Reset ¶ added in v0.4.5
func (x *PuzzleCreationResponse) Reset()
func (*PuzzleCreationResponse) String ¶ added in v0.4.5
func (x *PuzzleCreationResponse) String() string
type PuzzleGenerationRequest ¶ added in v0.4.5
type PuzzleGenerationRequest struct { Buckets []*PuzzleBucket `protobuf:"bytes,1,rep,name=buckets,proto3" json:"buckets,omitempty"` // contains filtered or unexported fields }
func (*PuzzleGenerationRequest) Descriptor
deprecated
added in
v0.4.5
func (*PuzzleGenerationRequest) Descriptor() ([]byte, []int)
Deprecated: Use PuzzleGenerationRequest.ProtoReflect.Descriptor instead.
func (*PuzzleGenerationRequest) GetBuckets ¶ added in v0.4.5
func (x *PuzzleGenerationRequest) GetBuckets() []*PuzzleBucket
func (*PuzzleGenerationRequest) ProtoMessage ¶ added in v0.4.5
func (*PuzzleGenerationRequest) ProtoMessage()
func (*PuzzleGenerationRequest) ProtoReflect ¶ added in v0.4.5
func (x *PuzzleGenerationRequest) ProtoReflect() protoreflect.Message
func (*PuzzleGenerationRequest) Reset ¶ added in v0.4.5
func (x *PuzzleGenerationRequest) Reset()
func (*PuzzleGenerationRequest) String ¶ added in v0.4.5
func (x *PuzzleGenerationRequest) String() string
type PuzzleTag ¶ added in v0.4.5
type PuzzleTag int32
func (PuzzleTag) Descriptor ¶ added in v0.4.5
func (PuzzleTag) Descriptor() protoreflect.EnumDescriptor
func (PuzzleTag) EnumDescriptor
deprecated
added in
v0.4.5
func (PuzzleTag) Number ¶ added in v0.4.5
func (x PuzzleTag) Number() protoreflect.EnumNumber
func (PuzzleTag) Type ¶ added in v0.4.5
func (PuzzleTag) Type() protoreflect.EnumType
type SingleEvaluation ¶ added in v0.4.5
type SingleEvaluation struct { EquityLoss float64 `protobuf:"fixed64,1,opt,name=equity_loss,json=equityLoss,proto3" json:"equity_loss,omitempty"` WinPctLoss float64 `protobuf:"fixed64,2,opt,name=win_pct_loss,json=winPctLoss,proto3" json:"win_pct_loss,omitempty"` MissedBingo bool `protobuf:"varint,3,opt,name=missed_bingo,json=missedBingo,proto3" json:"missed_bingo,omitempty"` PossibleStarPlay bool `protobuf:"varint,4,opt,name=possible_star_play,json=possibleStarPlay,proto3" json:"possible_star_play,omitempty"` MissedStarPlay bool `protobuf:"varint,5,opt,name=missed_star_play,json=missedStarPlay,proto3" json:"missed_star_play,omitempty"` TopIsBingo bool `protobuf:"varint,6,opt,name=top_is_bingo,json=topIsBingo,proto3" json:"top_is_bingo,omitempty"` // contains filtered or unexported fields }
func (*SingleEvaluation) Descriptor
deprecated
added in
v0.4.5
func (*SingleEvaluation) Descriptor() ([]byte, []int)
Deprecated: Use SingleEvaluation.ProtoReflect.Descriptor instead.
func (*SingleEvaluation) GetEquityLoss ¶ added in v0.4.5
func (x *SingleEvaluation) GetEquityLoss() float64
func (*SingleEvaluation) GetMissedBingo ¶ added in v0.4.5
func (x *SingleEvaluation) GetMissedBingo() bool
func (*SingleEvaluation) GetMissedStarPlay ¶ added in v0.4.5
func (x *SingleEvaluation) GetMissedStarPlay() bool
func (*SingleEvaluation) GetPossibleStarPlay ¶ added in v0.4.5
func (x *SingleEvaluation) GetPossibleStarPlay() bool
func (*SingleEvaluation) GetTopIsBingo ¶ added in v0.4.5
func (x *SingleEvaluation) GetTopIsBingo() bool
func (*SingleEvaluation) GetWinPctLoss ¶ added in v0.4.5
func (x *SingleEvaluation) GetWinPctLoss() float64
func (*SingleEvaluation) ProtoMessage ¶ added in v0.4.5
func (*SingleEvaluation) ProtoMessage()
func (*SingleEvaluation) ProtoReflect ¶ added in v0.4.5
func (x *SingleEvaluation) ProtoReflect() protoreflect.Message
func (*SingleEvaluation) Reset ¶ added in v0.4.5
func (x *SingleEvaluation) Reset()
func (*SingleEvaluation) String ¶ added in v0.4.5
func (x *SingleEvaluation) String() string