diff --git a/README.md b/README.md index d9bed0c..8a06334 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ npm i @superagent-ai/poker-eval ``` ### Create a game -``` +```ts // index.ts import { PokerGame } from "@superagent-ai/poker-eval"; diff --git a/examples/ai-sdk/index.ts b/examples/ai-sdk/index.ts index 5a62efe..dcaf574 100644 --- a/examples/ai-sdk/index.ts +++ b/examples/ai-sdk/index.ts @@ -1,7 +1,7 @@ import { generateAction } from "./agent"; -import { PokerGame } from "../../src/game"; -import { Player, PlayerAction } from "../../src/types"; +import { PokerGame } from "@superagent-ai/poker-eval"; +import { Player, PlayerAction } from "@superagent-ai/poker-eval/dist/types"; async function executeGameSimulation(numHands: number): Promise { // Setup AI players diff --git a/examples/ai-sdk/package-lock.json b/examples/ai-sdk/package-lock.json index 1a2dbfd..39468ef 100644 --- a/examples/ai-sdk/package-lock.json +++ b/examples/ai-sdk/package-lock.json @@ -10,6 +10,7 @@ "license": "ISC", "dependencies": { "@ai-sdk/openai": "^1.0.4", + "@superagent-ai/poker-eval": "^1.0.0", "ai": "^4.0.3", "dotenv": "^16.4.5", "zod": "^3.23.8" @@ -124,6 +125,15 @@ "node": ">=8.0.0" } }, + "node_modules/@superagent-ai/poker-eval": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@superagent-ai/poker-eval/-/poker-eval-1.0.0.tgz", + "integrity": "sha512-QABxbWOR0WUZDvoOUbcwox3KfM2rRZ0f9I2IrPlP91idWleyHykBmvFQZ3XsT/aEwJPcdl2LOa4jJoBZ986sTQ==", + "license": "MIT", + "dependencies": { + "poker-ts": "^1.0.0" + } + }, "node_modules/@types/diff-match-patch": { "version": "1.0.36", "resolved": "https://registry.npmjs.org/@types/diff-match-patch/-/diff-match-patch-1.0.36.tgz", @@ -266,6 +276,12 @@ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" } }, + "node_modules/poker-ts": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/poker-ts/-/poker-ts-1.4.0.tgz", + "integrity": "sha512-WMLM+jbSEIinr2o8b9rrK38iCmahvGg/DlVmTNAOqH/vmlsziOQfsSmlngtyIV8J2CwVZPZDDvSLQD8Ou1m7LQ==", + "license": "MIT" + }, "node_modules/react": { "version": "18.3.1", "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", diff --git a/examples/ai-sdk/package.json b/examples/ai-sdk/package.json index 327695e..f3ba622 100644 --- a/examples/ai-sdk/package.json +++ b/examples/ai-sdk/package.json @@ -10,6 +10,7 @@ "license": "ISC", "dependencies": { "@ai-sdk/openai": "^1.0.4", + "@superagent-ai/poker-eval": "^1.0.0", "ai": "^4.0.3", "dotenv": "^16.4.5", "zod": "^3.23.8" diff --git a/examples/ai-sdk/stats/GPT 1.csv b/examples/ai-sdk/stats/GPT 1.csv deleted file mode 100644 index 9fa7cf6..0000000 --- a/examples/ai-sdk/stats/GPT 1.csv +++ /dev/null @@ -1,111 +0,0 @@ -hand_result --1 -1 --1 -1 --1 --1 --1 -1 --1 --1 --1 --1 -1 --1 --1 --1 -1 -1 -1 --1 -1 --1 -1 -1 -1 -1 --1 --1 --1 -1 --1 --1 -1 --1 -0 -1 --1 --1 --1 -1 -1 -1 --1 -1 -1 --1 -1 --1 -1 --1 --1 -1 --1 --1 --1 -1 --1 --1 --1 -1 -1 --1 --1 -1 -1 -0 -1 --1 --1 --1 -1 --1 -0 -1 -1 --1 --1 -1 --1 --1 --1 -1 -1 --1 -1 --1 -1 -1 -1 --1 -1 -1 --1 --1 --1 -1 -1 -1 -1 -1 --1 --1 -0 --1 -1 --0.5 -0.5 --53 --71 --40 diff --git a/examples/ai-sdk/stats/GPT 2.csv b/examples/ai-sdk/stats/GPT 2.csv deleted file mode 100644 index 246fc96..0000000 --- a/examples/ai-sdk/stats/GPT 2.csv +++ /dev/null @@ -1,111 +0,0 @@ -hand_result -1 --1 -1 --1 -1 -1 -1 --1 -1 -1 -1 -1 --1 -1 -1 -1 --1 --1 --1 -1 --1 -1 --1 --1 --1 --1 -1 -1 -1 --1 -1 -1 --1 -1 -0 --1 -1 -1 -1 --1 --1 --1 -1 --1 --1 -1 --1 -1 --1 -1 -1 --1 -1 -1 -1 --1 -1 -1 -1 --1 --1 -1 -1 --1 --1 -0 --1 -1 -1 -1 --1 -1 -0 --1 --1 -1 -1 --1 -1 -1 -1 --1 --1 -1 --1 -1 --1 --1 --1 -1 --1 --1 -1 -1 -1 --1 --1 --1 --1 --1 -1 -1 -0 -1 --1 -0.5 --0.5 -53 -71 -40 diff --git a/package.json b/package.json index d5127e3..2e13799 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@superagent-ai/poker-eval", - "version": "1.0.0", + "version": "1.0.1", "description": "A poker game simulation library for Node.js", "main": "dist/game.js", "types": "dist/game.d.ts",