Skip to content

Comments

Feature/improve game ux#1

Open
silkirep13 wants to merge 2 commits intoJadsonrmh81:mainfrom
silkirep13:feature/improve-game-UX
Open

Feature/improve game ux#1
silkirep13 wants to merge 2 commits intoJadsonrmh81:mainfrom
silkirep13:feature/improve-game-UX

Conversation

@silkirep13
Copy link

Hello!

I came across this project and really liked the concept. I decided to implement a few changes to improve the overall User Experience (UX) and clean up the code slightly.

Changes implemented:

  1. Fixed Typos: Corrected spelling errors (e.g., "Unknow" -> "Unknown", "know actions" -> "known actions").
  2. Input Handling: Added .strip().lower() to the input method. Now the game accepts commands even if the user accidentally adds spaces or uses uppercase letters (e.g., "Walk " or "WALK").
  3. New Feature ('points'): Instead of printing the score after every single move (which can clutter the screen), I added a specific command points. The user can now check their score on demand.
  4. Better Onboarding: Added a welcome message at the start of the game displaying all available moves, so the player knows what to type immediately.

How to test:
Run the script and try typing points to see the current score after doing an action.

I hope you find these changes useful!

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant