pokerth.proto question

General PokerTH Issues
Post Reply
w2vy
Posts: 21
Joined: Tue Apr 01, 2025 11:24 pm
Been thanked: 1 time

I am working on a bot (yes open source) and have a question about "PlayerResult"

Code: Select all

message PlayerResult {
	required	uint32			playerId = 1;
	required	uint32			resultCard1 = 2;
	required	uint32			resultCard2 = 3;
	repeated	uint32			bestHandPosition = 4 [packed = true];
	required	uint32			moneyWon = 5;
	required	uint32			playerMoney = 6;
	optional 	uint32			cardsValue = 7;
}
Is bestHandPosition the list of cards used in the 'best' hand?
Is the cardsValue the strength with a larger number being a better hand?

I see this structure shown up on EndOfHandShowCards (49) and AfterHandShowCards (52)

I also see EndOfHandHideCards (50)

When is 49 used and when it 50 used?

I am mostly interested in the final hand where there is a single winner for the purposes of determining second place

Tom
Post Reply