Initial commit: 投注游戏平台初始化
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
namespace App\Core;
|
||||
|
||||
interface GameAlgorithmInterface {
|
||||
public static function generateResult(): array;
|
||||
public static function generateControlledResult(array $bets, array $waterConfig, int $attempts = 100): array;
|
||||
public static function checkWin(array $result, string $betType, string $betTarget): bool;
|
||||
public static function calculatePlatformProfit(array $result, array $bets): float;
|
||||
public static function getResultTable(): ?string;
|
||||
public static function formatResultForStorage(array $result, int $periodId): array;
|
||||
public static function parseResultFromDb(array $row): array;
|
||||
}
|
||||
Reference in New Issue
Block a user