Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pypokergui/server/poker.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def setup_config(config):
def start_server(config_path, port, speed):
global MODE_SPEED
with open(config_path, "rb") as f:
config = yaml.load(f)
config = yaml.safe_load(f)
setup_config(config)
MODE_SPEED = speed
app = Application()
Expand All @@ -147,4 +147,4 @@ def main():

if __name__ == '__main__':
main()

4 changes: 2 additions & 2 deletions pypokergui/server/templates/round_state.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h3><small>Next Player is
<div id="round-state-table" class="img-rounded">

<div id="seats-upper" class="row row-center">
{% for idx, player in zip(range(len(round_state['seats']))[:len(round_state['seats'])/2], round_state['seats']) %}
{% for idx, player in zip(range(len(round_state['seats']))[:int(len(round_state['seats'])/2)], round_state['seats']) %}
{% include "player_game.html" %}
{% end %}
</div>
Expand Down Expand Up @@ -62,7 +62,7 @@ <h4 class="round-state-table-text">${{ sidepot['amount'] }}</p>
</div>

<div id="seats-lower" class="row row-center">
{% for idx, player in zip(range(len(round_state['seats']))[len(round_state['seats'])/2:], round_state['seats'][len(round_state['seats'])/2:]) %}
{% for idx, player in zip(range(len(round_state['seats']))[int(len(round_state['seats'])/2):], round_state['seats'][int(len(round_state['seats'])/2):]) %}
{% include "player_game.html" %}
{% end %}
</div>
Expand Down
12 changes: 8 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
pypokerengine
tornado
click
pyyaml
click==6.7
colorama==0.4.6
neat-python==0.92
PyPokerEngine==1.0.1
PyPokerGUI==0.0.7
PyYAML==6.0.2
tabulate==0.9.0
tornado==6.4.2