**********开始创建扑克牌********** **********扑克牌创建成功********** **********开始创建玩家********** 创建两名玩家,根据提示创建 请输入第 1 个玩家ID: 123 请输入第 1 个玩家姓名: 周星驰 添加第 1 个玩家 周星驰 成功 请输入第 2 个玩家ID: 456 请输入第 2 个玩家姓名: 周润发 添加第 2 个玩家 周润发 成功 **********玩家创建成功********** **********开始洗牌********** Card [id=9, type=3] Card [id=11, type=4] Card [id=13, type=3] Card [id=8, type=3] Card [id=5, type=2] Card [id=6, type=1] Card [id=4, type=3] Card [id=5, type=4] Card [id=2, type=3] Card [id=9, type=2] Card [id=9, type=4] Card [id=14, type=2] Card [id=9, type=1] Card [id=2, type=1] Card [id=2, type=4] Card [id=7, type=4] Card [id=11, type=1] Card [id=10, type=1] Card [id=14, type=4] Card [id=14, type=3] Card [id=12, type=2] Card [id=2, type=2] Card [id=10, type=2] Card [id=7, type=1] Card [id=7, type=3] Card [id=8, type=2] Card [id=4, type=4] Card [id=13, type=4] Card [id=14, type=1] Card [id=12, type=1] Card [id=5, type=1] Card [id=6, type=4] Card [id=12, type=4] Card [id=11, type=2] Card [id=10, type=3] Card [id=3, type=4] Card [id=12, type=3] Card [id=4, type=2] Card [id=4, type=1] Card [id=6, type=2] Card [id=5, type=3] Card [id=8, type=4] Card [id=3, type=2] Card [id=13, type=2] Card [id=7, type=2] Card [id=3, type=3] Card [id=3, type=1] Card [id=6, type=3] Card [id=8, type=1] Card [id=11, type=3] Card [id=13, type=1] Card [id=10, type=4] **********洗牌成功********** **********发牌开始********** **********发牌成功********** 玩家 : 周星驰 获胜!! ********************************************** 玩家 : 周星驰的牌是:红桃--9 红桃--K 玩家 : 周润发的牌是:黑桃--J 红桃--8
Java collection集合之 扑克牌游戏(3)
内容版权声明:除非注明,否则皆为本站原创文章。
转载注明出处:https://www.heiqu.com/755d532790ab26958b5a7f6ae13f08cb.html