Skip to content

Commit

Permalink
Initial Release
Browse files Browse the repository at this point in the history
  • Loading branch information
stlucasgarcia committed Nov 13, 2020
1 parent dd3b769 commit bb2271f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,4 @@ tempCodeRunnerFile.py
*.db

# Json settings
user_settings.json
# user_settings.json
2 changes: 1 addition & 1 deletion menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def run(self):
pg.mixer.music.stop()
snd = pg.mixer.Sound("data/soundtracks/select_menu.mp3")
pg.mixer.Sound.play(snd, -1)
pg.mixer.Sound.set_volume(snd, 0.25)
pg.mixer.Sound.set_volume(snd, 0.35)

self.next.disable()

Expand Down
5 changes: 5 additions & 0 deletions user_settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"mode": "Player vs AI",
"theme": "classic",
"resolution": "HD"
}
4 changes: 0 additions & 4 deletions utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,12 +261,8 @@ def playersTurn(
self.drop_piece(matrix, row, column, turn)

if self.is_victory(matrix, turn) or self.is_tie(matrix):
print(scores[0], turn)
print(scores[1], turn)
scores[0] += 1 if turn % 2 == 0 else scores[0]
print(scores[0], turn)
scores[1] += 1 if turn % 2 == 1 else scores[1]
print(scores[1], turn)

self.draw_board(matrix, start_time, usernames)

Expand Down

0 comments on commit bb2271f

Please sign in to comment.