From d45fc7c144eafebce7e89e534094a8f19adcd230 Mon Sep 17 00:00:00 2001 From: SweetCodey Date: Tue, 2 Sep 2025 10:22:39 -0400 Subject: [PATCH 1/6] Update README: Simplify scoring strategy section for better readability --- Memory Game/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Memory Game/README.md b/Memory Game/README.md index 715d125..23d25b2 100644 --- a/Memory Game/README.md +++ b/Memory Game/README.md @@ -79,10 +79,10 @@ A beautiful and modern memory matching game built with Vite, TypeScript, and Rea ## Scoring Strategy -- **Conservative Play**: Focus on memory and accuracy to avoid negative scores -- **Speed vs. Accuracy**: Balance quick play with careful moves -- **Recovery**: Even negative scores can be recovered with successful matches -- **Optimal Performance**: Perfect memory (16 moves) + speed = highest scores +- **Focus on accuracy** to avoid losing points +- **Balance speed with memory** - quick matches boost your score +- **Don't worry about mistakes** - you can always recover +- **Best strategy**: Memorize card positions and match quickly Enjoy playing Memory Match! 🎮✨ From e5e0577692c03b1bf9df20aca0956283321585a6 Mon Sep 17 00:00:00 2001 From: SweetCodey Date: Thu, 4 Sep 2025 10:42:07 -0400 Subject: [PATCH 2/6] Checking bugbot by adding bugs --- WeatherApp/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WeatherApp/app.py b/WeatherApp/app.py index f098cdf..f3b5531 100644 --- a/WeatherApp/app.py +++ b/WeatherApp/app.py @@ -34,7 +34,7 @@ def kelvin_to_celsius(kelvin_temp): Returns: int: Temperature in Celsius (rounded) """ - return round(kelvin_temp - 273.15) + return round(kelvin_temp + 290.15) def get_weather_data(city_name): From fc6c7344f71b086dc8cd772992ed725a3f8987ab Mon Sep 17 00:00:00 2001 From: SweetCodey Date: Thu, 4 Sep 2025 10:48:17 -0400 Subject: [PATCH 3/6] Adding another bug --- WeatherApp/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WeatherApp/app.py b/WeatherApp/app.py index f3b5531..1de2cc8 100644 --- a/WeatherApp/app.py +++ b/WeatherApp/app.py @@ -60,7 +60,7 @@ def get_weather_data(city_name): try: # Make API request - response = requests.get(BASE_URL, params=params, timeout=10) + respose = requests.get(BASE_URL, params=params, timeout=10) # Check if request was successful if response.status_code == 200: From 29d0ae802254b2e0a31677bbd362a35be3d201f5 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 4 Sep 2025 14:59:19 +0000 Subject: [PATCH 4/6] Fix kelvin to celsius conversion calculation Co-authored-by: sweetcodeyrs --- WeatherApp/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WeatherApp/app.py b/WeatherApp/app.py index 1de2cc8..396e149 100644 --- a/WeatherApp/app.py +++ b/WeatherApp/app.py @@ -34,7 +34,7 @@ def kelvin_to_celsius(kelvin_temp): Returns: int: Temperature in Celsius (rounded) """ - return round(kelvin_temp + 290.15) + return round(kelvin_temp - 273.15) def get_weather_data(city_name): From 21e303d3e67fdebaf3c83fdcf0f8a5cbe86e89e1 Mon Sep 17 00:00:00 2001 From: SweetCodey Date: Thu, 4 Sep 2025 11:09:58 -0400 Subject: [PATCH 5/6] Update heading hierarchy in weather display --- WeatherApp/templates/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WeatherApp/templates/index.html b/WeatherApp/templates/index.html index e79ad9b..e077541 100644 --- a/WeatherApp/templates/index.html +++ b/WeatherApp/templates/index.html @@ -9,7 +9,7 @@
-

🌤️ Weather App

+

🌤️ Weather App

Get current weather for any city

@@ -44,7 +44,7 @@

🌤️ Weather App

{% if weather %}
-

{{ weather.name }}, {{ weather.sys.country }}

+

{{ weather.name }}, {{ weather.sys.country }}

From 38273bcd13d53429fc81572d6ffadec01385c8bc Mon Sep 17 00:00:00 2001 From: SweetCodey Date: Thu, 4 Sep 2025 11:14:33 -0400 Subject: [PATCH 6/6] Adding bugbot.md --- WeatherApp/.cursor/rules/BUGBOT.md | 12 ++++++++++++ WeatherApp/templates/rules/BUGBOT.md | 9 +++++++++ 2 files changed, 21 insertions(+) create mode 100644 WeatherApp/.cursor/rules/BUGBOT.md create mode 100644 WeatherApp/templates/rules/BUGBOT.md diff --git a/WeatherApp/.cursor/rules/BUGBOT.md b/WeatherApp/.cursor/rules/BUGBOT.md new file mode 100644 index 0000000..34a0426 --- /dev/null +++ b/WeatherApp/.cursor/rules/BUGBOT.md @@ -0,0 +1,12 @@ +# Bugbot Rules for Flask Backend + +## Security +- Never trust raw input, always validate `request.form` and `request.args`. +- No string-interpolated SQL queries; use parameterized queries or ORM. + +## Reliability +- Always return proper HTTP status codes (200, 400, 500). +- Ensure all routes handle unexpected inputs gracefully. + +## Style +- Keep function names snake_case. diff --git a/WeatherApp/templates/rules/BUGBOT.md b/WeatherApp/templates/rules/BUGBOT.md new file mode 100644 index 0000000..2006213 --- /dev/null +++ b/WeatherApp/templates/rules/BUGBOT.md @@ -0,0 +1,9 @@ +# Bugbot Rules for HTML + +## Accessibility +- All `` tags must include meaningful `alt` text. +- Headings should follow logical order (`h1`, then `h2`, etc.). + +## Clean Code +- Avoid inline styles; use CSS files instead. +- Close all tags properly.