Merge remote-tracking branch 'upstream/redacted' into redacted

This commit is contained in:
Elijah Steres 2020-12-30 01:31:44 -05:00
commit b3984cad8b
2 changed files with 7 additions and 3 deletions

1
.gitignore vendored
View File

@ -347,3 +347,4 @@ ids
# database # database
matteo.db matteo.db
/matteo_env/Lib/site-packages/flask_socketio/__init__.py

View File

@ -175,9 +175,12 @@ class game(object):
batter = self.get_batter() batter = self.get_batter()
if self.top_of_inning: if self.top_of_inning:
defender = random.choice(self.teams["home"].lineup) defender_list = self.teams["home"].lineup.copy()
else: else:
defender = random.choice(self.teams["away"].lineup) defender_list = self.teams["away"].lineup.copy()
defender_list.append(pitcher)
defender = random.choice(defender_list) #make pitchers field
outcome["batter"] = batter outcome["batter"] = batter
outcome["defender"] = "" outcome["defender"] = ""