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.
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:
enum
s for your game moves ("rock", "paper", "scissors") and results ("TIE", "WIN", "LOSE").switch
statement to determine the results.An additional improvement that should be pretty trivial is to localize it for Spanish.
Thank you very much for the suggestions, they help me to continue improving the posts
Happy to help!
Thanks for the pull request 😀😄