DEV Community

Discussion on: It's time to Apple Watch, create a game with WatchOS [Swift] ⌚️

Collapse
 
jrtibbetts profile image
Jason R Tibbetts

This was really helpful, since I'm considering adding a Watch version to one of my apps. I also have a few recommendations, which I put together in a pull request against your repo:

  • Use enums for your game moves ("rock", "paper", "scissors") and results ("TIE", "WIN", "LOSE").
  • Use a switch statement to determine the results.

An additional improvement that should be pretty trivial is to localize it for Spanish.

Collapse
 
andreslopezrm profile image
Andres Lopez

Thank you very much for the suggestions, they help me to continue improving the posts

Collapse
 
jrtibbetts profile image
Jason R Tibbetts

Happy to help!

Thread Thread
 
andreslopezrm profile image
Andres Lopez

Thanks for the pull request 😀😄