From b2a7682e1df6a5b75e39ccdb48cf234c3db341d2 Mon Sep 17 00:00:00 2001 From: Kristopher Luo <67327751+kristopherluo@users.noreply.github.com> Date: Tue, 16 Nov 2021 10:02:37 -0500 Subject: [PATCH 1/4] Change the variable RED Changes the variable RED from the color red to a more red/brown color. --- connect4.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connect4.py b/connect4.py index a1e6cce..1ca6474 100644 --- a/connect4.py +++ b/connect4.py @@ -5,7 +5,7 @@ BLUE = (0,0,255) BLACK = (0,0,0) -RED = (255,0,0) +RED = (165, 42, 42) YELLOW = (255,255,0) ROW_COUNT = 6 @@ -145,4 +145,4 @@ def draw_board(board): turn = turn % 2 if game_over: - pygame.time.wait(3000) \ No newline at end of file + pygame.time.wait(3000) From 91995bdcb04f6fa4df8f92ea6a3cc65245bfbace Mon Sep 17 00:00:00 2001 From: Zachary Clay Date: Tue, 16 Nov 2021 10:15:59 -0500 Subject: [PATCH 2/4] Fixed Issue #1 --- connect4.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connect4.py b/connect4.py index a1e6cce..ed3099d 100644 --- a/connect4.py +++ b/connect4.py @@ -8,8 +8,8 @@ RED = (255,0,0) YELLOW = (255,255,0) -ROW_COUNT = 6 -COLUMN_COUNT = 7 +ROW_COUNT = 8 +COLUMN_COUNT = 8 def create_board(): board = np.zeros((ROW_COUNT,COLUMN_COUNT)) From 127173aceb7d61b3b91b923f3f0a45145c6f2835 Mon Sep 17 00:00:00 2001 From: mhreid12 <72514872+mhreid12@users.noreply.github.com> Date: Tue, 16 Nov 2021 10:29:41 -0500 Subject: [PATCH 3/4] Changing board colors I changed the blue board to a dark green board. I also changed the background from black to white --- connect4.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/connect4.py b/connect4.py index ed3099d..96ea945 100644 --- a/connect4.py +++ b/connect4.py @@ -3,8 +3,8 @@ import sys import math -BLUE = (0,0,255) -BLACK = (0,0,0) +GREEN = (0,120,0) +WHITE = (255,255,255) RED = (255,0,0) YELLOW = (255,255,0) @@ -57,8 +57,8 @@ def winning_move(board, piece): def draw_board(board): for c in range(COLUMN_COUNT): for r in range(ROW_COUNT): - pygame.draw.rect(screen, BLUE, (c*SQUARESIZE, r*SQUARESIZE+SQUARESIZE, SQUARESIZE, SQUARESIZE)) - pygame.draw.circle(screen, BLACK, (int(c*SQUARESIZE+SQUARESIZE/2), int(r*SQUARESIZE+SQUARESIZE+SQUARESIZE/2)), RADIUS) + pygame.draw.rect(screen, GREEN, (c*SQUARESIZE, r*SQUARESIZE+SQUARESIZE, SQUARESIZE, SQUARESIZE)) + pygame.draw.circle(screen, WHITE, (int(c*SQUARESIZE+SQUARESIZE/2), int(r*SQUARESIZE+SQUARESIZE+SQUARESIZE/2)), RADIUS) for c in range(COLUMN_COUNT): for r in range(ROW_COUNT): @@ -98,7 +98,7 @@ def draw_board(board): sys.exit() if event.type == pygame.MOUSEMOTION: - pygame.draw.rect(screen, BLACK, (0,0, width, SQUARESIZE)) + pygame.draw.rect(screen, WHITE, (0,0, width, SQUARESIZE)) posx = event.pos[0] if turn == 0: pygame.draw.circle(screen, RED, (posx, int(SQUARESIZE/2)), RADIUS) @@ -107,7 +107,7 @@ def draw_board(board): pygame.display.update() if event.type == pygame.MOUSEBUTTONDOWN: - pygame.draw.rect(screen, BLACK, (0,0, width, SQUARESIZE)) + pygame.draw.rect(screen, WHITE, (0,0, width, SQUARESIZE)) #print(event.pos) # Ask for Player 1 Input if turn == 0: @@ -145,4 +145,4 @@ def draw_board(board): turn = turn % 2 if game_over: - pygame.time.wait(3000) \ No newline at end of file + pygame.time.wait(3000) From 2d9588c68084087720587a452ef952a0341c39cb Mon Sep 17 00:00:00 2001 From: zhayun3233 <76890077+zhayun3233@users.noreply.github.com> Date: Wed, 17 Nov 2021 18:48:21 -0500 Subject: [PATCH 4/4] Update connect4.py --- connect4.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connect4.py b/connect4.py index ed3099d..7466c97 100644 --- a/connect4.py +++ b/connect4.py @@ -145,4 +145,4 @@ def draw_board(board): turn = turn % 2 if game_over: - pygame.time.wait(3000) \ No newline at end of file + pygame.time.wait(5000) \ No newline at end of file