macondo

package
v0.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: GPL-3.0 Imports: 4 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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) Enum added in v0.4.5

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 (BotRequest_BotCode) String added in v0.4.5

func (x BotRequest_BotCode) String() string

func (BotRequest_BotCode) Type added in v0.4.5

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) 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 (ChallengeRule) String added in v0.4.5

func (x ChallengeRule) String() string

func (ChallengeRule) Type added in v0.4.5

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) Descriptor() ([]byte, []int)

Deprecated: Use GameEvent.ProtoReflect.Descriptor instead.

func (*GameEvent) GetBonus

func (x *GameEvent) GetBonus() int32

func (*GameEvent) GetColumn

func (x *GameEvent) GetColumn() int32

func (*GameEvent) GetCumulative

func (x *GameEvent) GetCumulative() int32

func (*GameEvent) GetDirection

func (x *GameEvent) GetDirection() GameEvent_Direction

func (*GameEvent) GetEndRackPoints

func (x *GameEvent) GetEndRackPoints() int32

func (*GameEvent) GetExchanged

func (x *GameEvent) GetExchanged() string

func (*GameEvent) GetIsBingo

func (x *GameEvent) GetIsBingo() bool

func (*GameEvent) GetLostScore

func (x *GameEvent) GetLostScore() int32

func (*GameEvent) GetMillisRemaining added in v0.4.5

func (x *GameEvent) GetMillisRemaining() int32

func (*GameEvent) GetNickname deprecated

func (x *GameEvent) GetNickname() string

Deprecated: Marked as deprecated in api/proto/macondo/macondo.proto.

func (*GameEvent) GetNote

func (x *GameEvent) GetNote() string

func (*GameEvent) GetNumTilesFromRack added in v0.6.7

func (x *GameEvent) GetNumTilesFromRack() uint32

func (*GameEvent) GetPlayedTiles

func (x *GameEvent) GetPlayedTiles() string

func (*GameEvent) GetPlayerIndex added in v0.4.5

func (x *GameEvent) GetPlayerIndex() uint32

func (*GameEvent) GetPosition

func (x *GameEvent) GetPosition() string

func (*GameEvent) GetRack

func (x *GameEvent) GetRack() string

func (*GameEvent) GetRow

func (x *GameEvent) GetRow() int32

func (*GameEvent) GetScore

func (x *GameEvent) GetScore() int32

func (*GameEvent) GetType

func (x *GameEvent) GetType() GameEvent_Type

func (*GameEvent) GetWordsFormed added in v0.4.5

func (x *GameEvent) GetWordsFormed() []string

func (*GameEvent) ProtoMessage

func (*GameEvent) ProtoMessage()

func (*GameEvent) ProtoReflect

func (x *GameEvent) ProtoReflect() protoreflect.Message

func (*GameEvent) Reset

func (x *GameEvent) Reset()

func (*GameEvent) String

func (x *GameEvent) String() string

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) Enum

func (GameEvent_Direction) EnumDescriptor deprecated

func (GameEvent_Direction) EnumDescriptor() ([]byte, []int)

Deprecated: Use GameEvent_Direction.Descriptor instead.

func (GameEvent_Direction) Number

func (GameEvent_Direction) String

func (x GameEvent_Direction) String() string

func (GameEvent_Direction) Type

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) 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 (GameEvent_Type) String

func (x GameEvent_Type) String() string

func (GameEvent_Type) Type

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
const (
	PlayState_PLAYING                PlayState = 0
	PlayState_WAITING_FOR_FINAL_PASS PlayState = 1
	PlayState_GAME_OVER              PlayState = 2
)

func (PlayState) Descriptor added in v0.4.5

func (PlayState) Descriptor() protoreflect.EnumDescriptor

func (PlayState) Enum added in v0.4.5

func (x PlayState) Enum() *PlayState

func (PlayState) EnumDescriptor deprecated added in v0.4.5

func (PlayState) EnumDescriptor() ([]byte, []int)

Deprecated: Use PlayState.Descriptor instead.

func (PlayState) Number added in v0.4.5

func (x PlayState) Number() protoreflect.EnumNumber

func (PlayState) String added in v0.4.5

func (x PlayState) String() string

func (PlayState) Type added in v0.4.5

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
const (
	PuzzleTag_EQUITY              PuzzleTag = 0
	PuzzleTag_BINGO               PuzzleTag = 1
	PuzzleTag_ONLY_BINGO          PuzzleTag = 2
	PuzzleTag_BLANK_BINGO         PuzzleTag = 3
	PuzzleTag_NON_BINGO           PuzzleTag = 4
	PuzzleTag_POWER_TILE          PuzzleTag = 5
	PuzzleTag_BINGO_NINE_OR_ABOVE PuzzleTag = 6
	PuzzleTag_CEL_ONLY            PuzzleTag = 7
)

func (PuzzleTag) Descriptor added in v0.4.5

func (PuzzleTag) Descriptor() protoreflect.EnumDescriptor

func (PuzzleTag) Enum added in v0.4.5

func (x PuzzleTag) Enum() *PuzzleTag

func (PuzzleTag) EnumDescriptor deprecated added in v0.4.5

func (PuzzleTag) EnumDescriptor() ([]byte, []int)

Deprecated: Use PuzzleTag.Descriptor instead.

func (PuzzleTag) Number added in v0.4.5

func (x PuzzleTag) Number() protoreflect.EnumNumber

func (PuzzleTag) String added in v0.4.5

func (x PuzzleTag) String() string

func (PuzzleTag) Type added in v0.4.5

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL