assertTrue(card2 < 52);
assertTrue(card2 >= 0);
}
else if (msg.hasPlayersTurnMessage()) {
if (msg.getPlayersTurnMessage().getPlayerId() == firstPlayerId) {
MyActionRequestMessage myRequest = MyActionRequestMessage.newBuilder()
.setGameId(gameId)
.setGameState(msg.getPlayersTurnMessage().getGameState())
.setHandNum(handNum)
.setMyAction(NetPlayerAction.netActionAllIn)
.setMyRelativeBet(0)
.build();
PokerTHMessage outMsg = PokerTHMessage.newBuilder()
.setMessageType(PokerTHMessageType.Type_MyActionRequestMessage)
.setMyActionRequestMessage(myRequest)
.build();
sendMessage(outMsg);
}
}
for (int i = 0; i < 9; i++) {
while (s[i].getInputStream().available() > 0) {
PokerTHMessage inMsg = receiveMessage(s[i]);
failOnErrorMessage(inMsg);
if (inMsg.hasPlayersTurnMessage()) {
if (inMsg.getPlayersTurnMessage().getPlayerId() == playerId[i]) {
MyActionRequestMessage myRequest = MyActionRequestMessage.newBuilder()
.setGameId(gameId)
.setGameState(inMsg.getPlayersTurnMessage().getGameState())
.setHandNum(handNum)
.setMyAction(NetPlayerAction.netActionFold)
.setMyRelativeBet(0)