youssefosamasalah51

I’ve updated the code to include validation that prevents players from choosing the same information. It’s all about making the game logic more robust and ensuring a smoother experience for everyone

Attachment
0
youssefosamasalah51

After reviewing my old code and doing some research, I came across a key programming principle: DRY (Don’t Repeat Yourself). Looking back at my first version, I realized I was doing the exact opposite! I’ve since leveled up my skills and refactored the code to make it cleaner and much more efficient. Check out the improvement in the second version

Attachment
Attachment
0