From bb2271ff0657eb69f2ba97e4a82d4832f65f24c0 Mon Sep 17 00:00:00 2001 From: Lucas Date: Fri, 13 Nov 2020 00:53:32 -0300 Subject: [PATCH] Initial Release --- .gitignore | 2 +- menu.py | 2 +- user_settings.json | 5 +++++ utilities.py | 4 ---- 4 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 user_settings.json diff --git a/.gitignore b/.gitignore index a972a54..ce15c6c 100644 --- a/.gitignore +++ b/.gitignore @@ -157,4 +157,4 @@ tempCodeRunnerFile.py *.db # Json settings -user_settings.json \ No newline at end of file +# user_settings.json \ No newline at end of file diff --git a/menu.py b/menu.py index ba7f163..a3fb7b9 100644 --- a/menu.py +++ b/menu.py @@ -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() diff --git a/user_settings.json b/user_settings.json new file mode 100644 index 0000000..3c86a36 --- /dev/null +++ b/user_settings.json @@ -0,0 +1,5 @@ +{ + "mode": "Player vs AI", + "theme": "classic", + "resolution": "HD" +} \ No newline at end of file diff --git a/utilities.py b/utilities.py index e64ca91..808504a 100644 --- a/utilities.py +++ b/utilities.py @@ -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)