Closed MartinMuzatko closed 4 years ago
Hi, could you explain what's wrong?
When I choose paper, it chooses scissor for me. When I choose scissor, it chooses paper for me. Rock is fine.
Here the function defines 2 as scissors, 3 as paper https://github.com/arifikhsan/batu-gunting-kertas-nuxt/blob/master/pages/index.vue#L274-L289
Here you use the wrong translations for the wrong numbers :) https://github.com/arifikhsan/batu-gunting-kertas-nuxt/blob/master/pages/index.vue#L81-L98
wow good catch. i dont realize it at all 🎉
fixed!
https://github.com/arifikhsan/batu-gunting-kertas-nuxt/blob/master/pages/index.vue#L81-L98
https://github.com/arifikhsan/batu-gunting-kertas-nuxt/blob/master/pages/index.vue#L274-L289