return this.hand.iterator().next();
}
public int bid(Card trump, int min, int max, int notAllowedToBid) {
try {
Message message = new Message(MessageType.BID);
ms.addCard(message, trump);
message.addMsgParam(new MessageParam(MessageParamConstants.MIN, String.valueOf(min)));
message.addMsgParam(new MessageParam(MessageParamConstants.MAX, String.valueOf(max)));
message.addMsgParam(new MessageParam(MessageParamConstants.BID_NOT_ALLOWED, String.valueOf(notAllowedToBid)));
return ms.getInt(message);
} catch (IOException e) {
e.printStackTrace();
}
return 0;