Roshambo Code Challenge
Here's the Roshambo coding assignment.
If you want to pass the AWS Certification exams, you need to know a little bit of code. Not a lot, but you do need to know your way around web pages, Java files and modern data exchange formats like YAML and JSON.
- Drag from the left to the right to sort the scrambled Rock-Paper-Scissors code.
- When completed, copy the Roshambo HTML and JavaScript code into Notepad++.
- Save your HTML file as roshambo.html on your desktop.
- Open your roshambo.html file in Chrome and view your page in a web browser!
- You should lint your code when you get it to work.
WARNING: The dragging and dropping function doesn't work well on mobile.
Required Overview
There is a JSON file named yesterdays-totals, hosted on scrumtuous.com, that contains yesterday's totals from all visitors who played the rock-paper-scissors game.
Look at the file yourself and see if you can decipher the contents of this complicated JSON file:
http://www.scrumtuous.com/yesterdays-totals.json
Here's what it looks like:
{"wins":231,"losses":98,"ties":123}
JSON is the standard, data-exchange format for web pages, microservices and RESTful web services.
If we can figure out how to display the data in this JSON file in our webpage, then we can basically handle any type of data exchanges that happen over the modern web. What a delicious thought!
Now get to work!
The JSON Data
All Answers Answered
Answers Remain