Skip to content

Commit

Permalink
feat: update example with published lib (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
homanp authored Nov 25, 2024
1 parent 656bd6d commit 003bbac
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 226 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ npm i @superagent-ai/poker-eval
```

### Create a game
```
```ts
// index.ts

import { PokerGame } from "@superagent-ai/poker-eval";
Expand Down
4 changes: 2 additions & 2 deletions examples/ai-sdk/index.ts
Original file line number Diff line number Diff line change
@@ -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<void> {
// Setup AI players
Expand Down
16 changes: 16 additions & 0 deletions examples/ai-sdk/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions examples/ai-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
111 changes: 0 additions & 111 deletions examples/ai-sdk/stats/GPT 1.csv

This file was deleted.

111 changes: 0 additions & 111 deletions examples/ai-sdk/stats/GPT 2.csv

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 003bbac

Please sign in to comment.