[phppoker] 德州扑克命令行版本

项目地址 - phppoker

正文

composer global require rry/phppoker 来安装,和 laravel/installer 一样安装之后需要把 vendor/bin 目录配置到你的环境变量,目前只有两个命令

phppoker random [number]

phppoker start number name1, name2..

不过,可能 :spades: :hearts: :clubs: :diamonds: 会乱码,需要安装字体 https://github.com/powerline/fonts

Install

You can use composer global require rry/phppoker to install the game.

If you use linux or osx.

You should add ~/.config/composer/vendor/bin to your path

If windows,

Just add the bin to you path manually.

Feature

  • random game

Just check phppoker random -h to know the rule.

phppoker random

Please wait...
+----------+----------------+
| Username | Hand           |
+----------+----------------+
| Libby    | A♥ 2♦ J♠ 4♦ Q♠ |
| Velva    | 9♦ K♦ 5♣ K♥ K♥ |
+----------+----------------+
The results were as follows:
Winner: Velva
Three of a kind, oh year!
  • start game (appoint you and your friends to start)

phppoker start 2 Foo Bar

Although names not enough, i still execute the program, thanks me.
Please wait...
+----------+-----------------+
| Username | Hand            |
+----------+-----------------+
| Foo      | 5♣ 3♠ K♠ 7♦ 8♥  |
| Bar      | 9♠ J♣ 5♥ 7♠ 10♣ |
+----------+-----------------+
The results were as follows:
Winner: Bar
High card, i am so luck

TEST

phpunit to test poker core code.

Other

If you have some suggestion or find a bug, welcome to tell me.

License

MIT

《L05 电商实战》
从零开发一个电商项目,功能包括电商后台、商品 & SKU 管理、购物车、订单管理、支付宝支付、微信支付、订单退款流程、优惠券等
《L01 基础入门》
我们将带你从零开发一个项目并部署到线上,本课程教授 Web 开发中专业、实用的技能,如 Git 工作流、Laravel Mix 前端工作流等。
讨论数量: 0
(= ̄ω ̄=)··· 暂无内容!

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!