ratel
ratel copied to clipboard
命令行斗地主、德州扑克!
RT
记牌器记的是对手的牌,但是抢地主的时候,记牌器地主牌扣下来了,这意味着可以知道地主牌是什么。 开局时,比如我看到 S[0] 表示对手没有这个牌,我发现我自己也没有这个牌,于是我就知道地主牌有 S 。
WebsocketTransferHandler中new Thread(() -> { try { Thread.sleep(2000L); ChannelUtils.pushToClient(ch, ClientEventCode.CODE_CLIENT_CONNECT, String.valueOf(clientSide.getId())); ChannelUtils.pushToClient(ch, ClientEventCode.CODE_CLIENT_NICKNAME_SET, null); } catch (InterruptedException ignored) { } }).start(); 为什么要sleep 2s呢?
Hi all, I color poker in this commit. The poker will be displayed as below. * hard-poker  * soft-poker  * text-type-poker  * text-untype-poker  Regards, Goody
RT. Displays the number of servers online in multiple locations.
在抢地主选择流程后,一次性打印了好多信息,我不得不往上拉,再一条条仔细看。建议每条信息都延迟打印,这样可以让用户有时间去阅读,也能模拟真实斗地主的出牌间隔。