定制 roliod/texas-holdem-up-validation-rules 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

roliod/texas-holdem-up-validation-rules

Composer 安装命令:

composer require roliod/texas-holdem-up-validation-rules

包简介

A rule engine that can determine the rank of a poker hand.

README 文档

README

Build Status

A Texas Hold’em poker hands validation rule engine in PHP.

Installation

Prerequisites

PHP version >= 7.2

Install Package

In order to install this package can either add it directly to your composer.json:

{
  "require": {
    "roliod/texas-holdem-up-validation-rules": "^1.1.1"
  }
}

OR

composer require roliod/texas-holdem-up-validation-rules

Quick Start

This package followings the Standard Poker Hand Ranking rules.

In order to get the rank of a list of hands using this package, you will need to do the following.

<?php
declare(strict_types=1);

$evaluator = \Roliod\TexasHUPoker\Evaluate(PATH_TO_TXT_FILE);
$rankingList = $evaluator->rank();

print_r($rankingList);

Sample TXT File Content

Here is a sample txt file content acceptable by the package:

10❤ 10♦ 10♠ 9♣ 9♦
4♠ J♠ 8♠ 2♠ 9♠
3♦ J♣ 8♠ 4❤ 2♠
7♣ 7♦ 7♠ K♣ 3♦
A❤ A♦ 8♣ 4♠ 7❤
J❤ J♦ J♠ J♣ 7♦
8♣ 7♣ 6♣ 5♣ 4♣
9♣ 8♦ 7♠ 6♦ 5❤
4♣ 4♠ 3♣ 3♦ Q♣
A♦ K♦ Q♦ J♦ 10♦

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-11-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固