@slot-engine/core 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/.turbo/turbo-build.log +33 -0
  2. package/.turbo/turbo-typecheck.log +4 -0
  3. package/CHANGELOG.md +7 -0
  4. package/README.md +8 -0
  5. package/dist/index.d.mts +1306 -0
  6. package/dist/index.d.ts +1306 -0
  7. package/dist/index.js +2929 -0
  8. package/dist/index.js.map +1 -0
  9. package/dist/index.mjs +2874 -0
  10. package/dist/index.mjs.map +1 -0
  11. package/dist/lib/zstd.exe +0 -0
  12. package/dist/optimizer-rust/Cargo.toml +19 -0
  13. package/dist/optimizer-rust/src/exes.rs +154 -0
  14. package/dist/optimizer-rust/src/main.rs +1659 -0
  15. package/index.ts +205 -0
  16. package/lib/zstd.exe +0 -0
  17. package/optimizer-rust/Cargo.toml +19 -0
  18. package/optimizer-rust/src/exes.rs +154 -0
  19. package/optimizer-rust/src/main.rs +1659 -0
  20. package/package.json +33 -0
  21. package/src/Board.ts +527 -0
  22. package/src/Book.ts +83 -0
  23. package/src/GameConfig.ts +148 -0
  24. package/src/GameMode.ts +86 -0
  25. package/src/GameState.ts +272 -0
  26. package/src/GameSymbol.ts +61 -0
  27. package/src/ReelGenerator.ts +589 -0
  28. package/src/ResultSet.ts +207 -0
  29. package/src/Simulation.ts +625 -0
  30. package/src/SlotGame.ts +117 -0
  31. package/src/Wallet.ts +203 -0
  32. package/src/WinType.ts +102 -0
  33. package/src/analysis/index.ts +198 -0
  34. package/src/analysis/utils.ts +128 -0
  35. package/src/optimizer/OptimizationConditions.ts +99 -0
  36. package/src/optimizer/OptimizationParameters.ts +46 -0
  37. package/src/optimizer/OptimizationScaling.ts +18 -0
  38. package/src/optimizer/index.ts +142 -0
  39. package/src/utils/math-config.ts +109 -0
  40. package/src/utils/setup-file.ts +36 -0
  41. package/src/utils/zstd.ts +28 -0
  42. package/src/winTypes/ClusterWinType.ts +3 -0
  43. package/src/winTypes/LinesWinType.ts +208 -0
  44. package/src/winTypes/ManywaysWinType.ts +3 -0
  45. package/tsconfig.json +19 -0
  46. package/utils.ts +270 -0
@@ -0,0 +1,33 @@
1
+
2
+ > @slot-engine/core@0.0.1 prebuild /home/runner/work/slot-engine/slot-engine/packages/core
3
+ > pnpm typecheck && pnpm copy-files
4
+
5
+
6
+ > @slot-engine/core@0.0.1 typecheck /home/runner/work/slot-engine/slot-engine/packages/core
7
+ > tsc --noEmit
8
+
9
+
10
+ > @slot-engine/core@0.0.1 copy-files /home/runner/work/slot-engine/slot-engine/packages/core
11
+ > tsx ../../scripts/copy-core-files.ts
12
+
13
+ ✅ Files copied successfully.
14
+
15
+ > @slot-engine/core@0.0.1 build /home/runner/work/slot-engine/slot-engine/packages/core
16
+ > tsup ./index.ts --dts --format cjs,esm --sourcemap
17
+
18
+ CLI Building entry: index.ts
19
+ CLI Using tsconfig: tsconfig.json
20
+ CLI tsup v8.5.0
21
+ CLI Target: es2022
22
+ CJS Build start
23
+ ESM Build start
24
+ CJS dist/index.js 93.83 KB
25
+ CJS dist/index.js.map 193.64 KB
26
+ CJS ⚡️ Build success in 127ms
27
+ ESM dist/index.mjs 90.37 KB
28
+ ESM dist/index.mjs.map 193.21 KB
29
+ ESM ⚡️ Build success in 129ms
30
+ DTS Build start
31
+ DTS ⚡️ Build success in 2038ms
32
+ DTS dist/index.d.ts 42.85 KB
33
+ DTS dist/index.d.mts 42.85 KB
@@ -0,0 +1,4 @@
1
+
2
+ > @slot-engine/core@0.0.1 typecheck /home/runner/work/slot-engine/slot-engine/packages/core
3
+ > tsc --noEmit
4
+
package/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # @slot-engine/core
2
+
3
+ ## 0.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Initial npm release for testing purposes. ([#2](https://github.com/slot-engine/slot-engine/pull/2)) - Thanks @nordowl
package/README.md ADDED
@@ -0,0 +1,8 @@
1
+ > [!NOTE]
2
+ > This software **is work in progress** and may currently miss features or contain bugs. Feel free to contribute to help improve this project. Breaking changes may occur at any time during beta.
3
+
4
+ # Slot Engine Core
5
+
6
+ Library for configuring and simulating slot games. Produces output compatible with Stake Engine / Stake RGS.
7
+
8
+ [📖 Documentation](https://slot-engine.dev/docs/core)