Skip to content

Commit cde2e0f

Browse files
Merge branch 'main' into fix/homepage-layout-alignment-238
2 parents 7a0211e + a465352 commit cde2e0f

28 files changed

Lines changed: 5312 additions & 8454 deletions

.DS_Store

8 KB
Binary file not shown.

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ print("\n👋 Thanks for playing!\n")
109109

110110
### ✅ Web App Projects - Structure
111111

112-
For web implementation, add to `web-app/js/projects.js`:
112+
For web implementation, add to `web-app/js/projects/your-project-name.js`:
113113

114114
```javascript
115115
// 1. HTML Template Function
@@ -137,7 +137,7 @@ function initYourProject() {
137137
});
138138
}
139139

140-
// 3. Register in getProjectHTML() and initializeProject()
140+
// 3. Register in getProjectHTML() and initializeProject() in `web-app/js/projects.js`
141141
```
142142

143143
### ✅ Web App Projects - Guidelines

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,18 @@ python games/Rock-Paper-Scissor/Rock-Paper-Scissor.py
6868

6969
## 🙌 Contributors
7070

71+
- HARSHP-16
72+
73+
74+
- Quantum3600
75+
76+
77+
- abhi-nav-25
78+
79+
80+
- mrinmoyChakraborty-mrinox
81+
82+
7183
- nimkarprachi17
7284

7385

games/Rock-Paper-Scissor/Rock-Paper-Scissor.py

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,18 @@
2626
computer = random.randint(1, 3)
2727

2828
if value not in valid:
29-
Flag = False
30-
print('❌ Invalid choice! Rerun the game...\n')
31-
32-
elif Flag:
33-
print(f'\n👤 You chose: {key[valid[value]]}')
34-
print(f'🤖 Computer chose: {key[computer]}\n')
35-
36-
if (valid[value] == 1 and computer == 2) or (valid[value] == 2 and computer == 3) or (valid[value] == 3 and computer == 1):
37-
print('😢 You lost!! Better luck next time!\n')
38-
elif valid[value] == computer:
39-
print("🤝 It's a Tie!! Great minds think alike!\n")
40-
else:
41-
print('🎉 You won!! Congratulations!\n')
29+
print('❌ Invalid choice! Please enter r, p, or s. Try again.\n')
30+
continue
31+
32+
print(f'\n👤 You chose: {key[valid[value]]}')
33+
print(f'🤖 Computer chose: {key[computer]}\n')
34+
35+
if (valid[value] == 1 and computer == 2) or (valid[value] == 2 and computer == 3) or (valid[value] == 3 and computer == 1):
36+
print('😢 You lost!! Better luck next time!\n')
37+
elif valid[value] == computer:
38+
print("🤝 It's a Tie!! Great minds think alike!\n")
39+
else:
40+
print('🎉 You won!! Congratulations!\n')
4241

4342
response = str(input('Continue playing? Yes(y) or No(n): ')).lower()
4443

utilities/Productivity-Pet/Productivity-Pet.py

Lines changed: 44 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -7,46 +7,60 @@
77
user = input("➡️ Did you complete your tasks today? (yes/no): ").lower().strip()
88

99
if user in ["yes", "yeah", "yep"]:
10+
while True:
11+
count = input("📝 How many tasks were in your list? ").strip()
1012

11-
count = input("📝 How many tasks were in your list? ").strip()
13+
if not count.isdigit() or int(count) <= 0:
14+
print("⚠️ Please enter a valid number.\n")
15+
continue
1216

13-
if not count.isdigit() or int(count) <= 0:
14-
print("⚠️ Please enter a valid number.\n")
15-
continue
17+
count = int(count)
18+
tasks = []
19+
for i in range(count):
1620

17-
count = int(count)
18-
tasks = []
19-
for i in range(count):
20-
task = input(f" Task {i+1}: ")
21-
tasks.append(task)
21+
while True:
22+
task = input(f" Task {i+1}: ").strip()
2223

23-
done = input("✅ How many did you complete? ").strip()
24+
if not task:
25+
print("⚠️ Task name cannot be empty.")
26+
continue
2427

25-
if not done.isdigit():
26-
print("⚠️ Please enter a valid number.\n")
27-
continue
28+
tasks.append(task)
29+
break
30+
31+
while True:
2832

29-
done = int(done)
33+
done = input("✅ How many did you complete? ").strip()
3034

31-
if done < 0 or done > count:
32-
print("⚠️ That doesn't seem right. Try again.\n")
33-
continue
35+
if not done.isdigit():
36+
print("⚠️ Please enter a valid number.\n")
37+
continue
3438

35-
percentage = (done / count) * 100
36-
print(f"\n📊 Progress: {percentage:.1f}%")
39+
done = int(done)
3740

38-
pets = ["🐦", "🐧", "🦇", "🦤", "🦆", "🦅"]
39-
pet = random.choice(pets)
41+
if done < 0 or done > count:
42+
print("⚠️ That doesn't seem right. Try again.\n")
43+
continue
4044

41-
if percentage < 50:
42-
print("😔 The pet didn't hatch. Current stage: 🥚")
43-
print("💡 Try completing more tasks tomorrow!\n")
44-
elif percentage < 80:
45-
print("🐣 Getting there! Current stage: 🐣")
46-
print("💪 Almost hatched — keep going!\n")
47-
else:
48-
print(f"🎉 Congratulations! Your pet hatched: {pet}")
49-
print("🏆 Amazing work today!\n")
45+
break
46+
47+
percentage = (done / count) * 100
48+
print(f"\n📊 Progress: {percentage:.1f}%")
49+
50+
pets = ["🐦", "🐧", "🦇", "🦤", "🦆", "🦅"]
51+
pet = random.choice(pets)
52+
53+
if percentage < 50:
54+
print("😔 The pet didn't hatch. Current stage: 🥚")
55+
print("💡 Try completing more tasks tomorrow!\n")
56+
elif percentage < 80:
57+
print("🐣 Getting there! Current stage: 🐣")
58+
print("💪 Almost hatched — keep going!\n")
59+
else:
60+
print(f"🎉 Congratulations! Your pet hatched: {pet}")
61+
print("🏆 Amazing work today!\n")
62+
63+
break
5064

5165
elif user in ["no", "nope", "nah"]:
5266
print("💬 No worries! Come back when you're done.\n")

web-app/.DS_Store

8 KB
Binary file not shown.

web-app/assets/games-bg.jpg

144 KB
Loading

web-app/assets/math-bg.jpg

182 KB
Loading

web-app/assets/utilities-bg.jpg

159 KB
Loading

0 commit comments

Comments
 (0)