Skip to content

Commit

Permalink
convert to release version
Browse files Browse the repository at this point in the history
  • Loading branch information
changhongyan123 committed Feb 6, 2019
1 parent f08fada commit 56ccd7c
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 203 deletions.
10 changes: 0 additions & 10 deletions GUI.py

This file was deleted.

18 changes: 6 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using the conda or pyenv

- conda create -n cs3243 python=2.7
- conda env remove --name cs3243
- source activate cs3243

replace the cs3243 with whatever name you want
Expand All @@ -23,23 +22,16 @@ print("hello world")
```


### Set up gui
```pip install pypokergui```
run the command and replace the yaml file path
```
pypokergui serve /Users/ishikota/poker/poker_conf.yaml --port 8000 --speed moderate
```


### Create your own player
#### Example
#### Example player

```
class RaisedPlayer(BasePokerPlayer):
def declare_action(self, valid_actions, hole_card, round_state):
#Implement your stragy code
#Implement your code
return action
def receive_game_start_message(self, game_info):
Expand All @@ -57,6 +49,8 @@ class RaisedPlayer(BasePokerPlayer):
def receive_round_result_message(self, winners, hand_info, round_state):
pass
```
#### Example Game
The example game is in the example.py

#### Information for the game
```valid_actions```: vaild action list
Expand All @@ -76,6 +70,6 @@ OR
```

In the limited version, user only allowed to raise for four time in one round game.
In addition, in each street (preflop,flop,turn,river),only allowed to raise for four times.
In addition, in each street (preflop,flop,turn,river),each player only allowed to raise for four times.

Other information is similar to the PyPokerEngine,please check the detail about the parameter [link](https://github.com/ishikota/PyPokerEngine/blob/master/AI_CALLBACK_FORMAT.md)
Other information is similar to the PyPokerEngine,please check the detail about the parameter [link](https://github.com/ishikota/PyPokerEngine/blob/master/AI_CALLBACK_FORMAT.md)
75 changes: 0 additions & 75 deletions consoleplayer.py

This file was deleted.

File renamed without changes.
29 changes: 0 additions & 29 deletions fishplayer.py

This file was deleted.

38 changes: 0 additions & 38 deletions honestplayer.py

This file was deleted.

10 changes: 0 additions & 10 deletions poker_conf.yaml

This file was deleted.

29 changes: 0 additions & 29 deletions smartwarrior.py

This file was deleted.

0 comments on commit 56ccd7c

Please sign in to comment.