Skip to content

Commit

Permalink
Update modo.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cderickson committed Jun 7, 2023
1 parent 033d3f9 commit d902e3c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modo.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MODO GameLog Cleaning Module
import copy
import numpy as np

# To add a column to a database:
# Add the column to modo.header() function.
Expand Down Expand Up @@ -717,7 +718,10 @@ def game_data(ga):

def mulls(cards):
mull_dict = {"seven":0,"six":1,"five":2,"four":3,"three":4,"two":5,"one":6,"zero":7}
return mull_dict[cards]
try:
return mull_dict[cards]
except KeyError:
return "NA"

def get_winner(curr_game_list,p1,p2):
# Look for a concession string.
Expand Down

0 comments on commit d902e3c

Please sign in to comment.