From d0d937caef2783ff22282afbb3a74178d788f66c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 24 May 2026 02:08:24 +0000 Subject: [PATCH 1/3] docs: update contributor gallery [skip ci] --- README.md | 54 ++++++++++++++++++++++++++++++++---------------------- 1 file changed, 32 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 0f2f425..249e77d 100644 --- a/README.md +++ b/README.md @@ -396,6 +396,12 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines. @Sanjhivvarshan-b-s + + + SathvikaTalari
+ @SathvikaTalari +
+ Shashank-8p
@@ -420,14 +426,14 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines. @Sparshjoshi-iit
+ + Sreekuttan-007
@Sreekuttan-007
- - Suhani-ai-dev
@@ -458,14 +464,14 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines. @Vanshikakhasat
+ + Vinanthi07
@Vinanthi07
- - abdullahxyz85
@@ -496,14 +502,14 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines. @artic2702
+ + ash-heinz
@ash-heinz
- - aspartic-gthb
@@ -534,14 +540,14 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines. @codewithakshyaaa
+ + developer-yash03
@developer-yash03
- - dhanushrajvr
@@ -572,14 +578,14 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines. @jeetrouth
+ + jyotish6699
@jyotish6699
- - kumudasrip
@@ -610,14 +616,14 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines. @n1o5
+ + nene-hana
@nene-hana
- - nimkarprachi17
@@ -648,14 +654,14 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines. @pragya-manna
+ + prasad-0007
@prasad-0007
- - priya05-git
@@ -686,14 +692,14 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines. @sakshicoded1111
+ + sanzzzz-g
@sanzzzz-g
- - shaktipy
@@ -712,12 +718,20 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines. @shreyasarote7717-cyber
+ + + shreyasgawande19
+ @shreyasgawande19 +
+ siri-004
@siri-004
+ + snehacodes-2906
@@ -730,8 +744,6 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines. @snehanair-486
- - steam-bell-92
@@ -756,6 +768,8 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines. @twinkle0tech
+ + vedansht2211
@@ -768,8 +782,6 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines. @vedika76
- - vedikabajaj05
@@ -789,8 +801,6 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines.
- - From fdbe49e8d5c7b4aa1a7b8cbbd5d5798ce59ccb3b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 25 May 2026 02:27:34 +0000 Subject: [PATCH 2/3] docs: update contributor gallery [skip ci] --- README.md | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 1af1f87..76a508b 100644 --- a/README.md +++ b/README.md @@ -452,8 +452,6 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines. @Sparshjoshi-iit - - Sreekuttan-007
@@ -492,8 +490,6 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines. @Vanshikakhasat
- - Vinanthi07
@@ -532,8 +528,6 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines. @artic2702
- - ash-heinz
@@ -572,8 +566,6 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines. @codewithakshyaaa
- - developer-yash03
@@ -612,8 +604,6 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines. @jeetrouth
- - jyotish6699
@@ -652,8 +642,6 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines. @n1o5
- - nene-hana
@@ -692,8 +680,6 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines. @pragya-manna
- - prasad-0007
@@ -732,8 +718,6 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines. @sakshicoded1111
- - sanzzzz-g
@@ -772,8 +756,6 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines. @siri-004
- - snehacodes-2906
@@ -786,6 +768,8 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines. @snehanair-486
+ + steam-bell-92
@@ -810,8 +794,6 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines. @twinkle0tech
- - vedansht2211
@@ -824,6 +806,8 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines. @vedika76
+ + vedikabajaj05
@@ -843,6 +827,8 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines.
+ + From 30dde96ba779f303bef719918fcb386ac4d6f2ac Mon Sep 17 00:00:00 2001 From: yuvraj-k-singh Date: Mon, 25 May 2026 22:46:41 +0530 Subject: [PATCH 3/3] Fix Game crashes with index out of range error for invalid row/column input --- games/Dots-Boxes-AI/Dots-Boxes-AI.py | 47 ++++++++++++++-------------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/games/Dots-Boxes-AI/Dots-Boxes-AI.py b/games/Dots-Boxes-AI/Dots-Boxes-AI.py index abc2826..876fd04 100644 --- a/games/Dots-Boxes-AI/Dots-Boxes-AI.py +++ b/games/Dots-Boxes-AI/Dots-Boxes-AI.py @@ -14,7 +14,7 @@ # Title print(BOLD + CYAN) print("=" * 70) -print("🔲 DOTS & BOXES AI - ADVANCED VERSION 🔲") +print("🔲 DOTS & BOXES AI - ADVANCED VERSION 🔲") print("=" * 70) print(RESET) @@ -266,32 +266,33 @@ def ai_move(): print(RED + "❌ Invalid direction!" + RESET) continue - row = input("📍 Enter row: ") - col = input("📍 Enter column: ") + row_in = input("📍 Enter row: ") + col_in = input("📍 Enter column: ") - if not row.isdigit() or not col.isdigit(): - print(RED + "❌ Invalid position!" + RESET) + # Check if empty, or starts with a negative sign, or isn't numeric + if not row_in.strip() or not col_in.strip() or '-' in row_in or '-' in col_in or not row_in.isdigit() or not col_in.isdigit(): + print(RED + "❌ Invalid input! Rows and columns must be positive numbers." + RESET) continue - row, col = int(row), int(col) + row, col = int(row_in), int(col_in) - try: - if direction == 'h': - if horizontal_lines[row][col]: - print(YELLOW + "⚠️ Line already taken!" + RESET) - continue - horizontal_lines[row][col] = True - else: - if vertical_lines[row][col]: - print(YELLOW + "⚠️ Line already taken!" + RESET) - continue - vertical_lines[row][col] = True - except IndexError: - print(RED + "❌ Position out of range!" + RESET) - continue - except ValueError: - print(RED + "❌ Invalid input!" + RESET) - continue + # Explicit Boundaries Check Before Modifying Array + if direction == 'h': + if row < 0 or row >= (size + 1) or col < 0 or col >= size: + print(RED + f"❌ Position out of range! For 'h', Row must be 0-{size} and Col must be 0-{size-1}." + RESET) + continue + if horizontal_lines[row][col]: + print(YELLOW + "⚠️ Line already taken!" + RESET) + continue + horizontal_lines[row][col] = True + else: + if row < 0 or row >= size or col < 0 or col >= (size + 1): + print(RED + f"❌ Position out of range! For 'v', Row must be 0-{size-1} and Col must be 0-{size}." + RESET) + continue + if vertical_lines[row][col]: + print(YELLOW + "⚠️ Line already taken!" + RESET) + continue + vertical_lines[row][col] = True symbol = 'P' if current_player == 1 else 'A' got_box = check_boxes(symbol)