Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 1.57 KB

3. challenge exercises.md

File metadata and controls

53 lines (34 loc) · 1.57 KB

Challenge Exercises

Now you've had an opportunity to get started using GitHub Copilot, we have a number of challenges for you to attempt. Remember the goal here is not to test your programming abilities but rather, see how you can use GitHub Copilot to help you complete these tasks. Even if you've never programmed in Python, you may be surprised how Copilot can help you be successful with these challenge.

Challenge #1 - Adding Lizard and Spock to the game

Adding Lizard and Spock to the game

  • Improve the rock paper scissors game by adding Lizard and Spock. Extra Kudos for a terminal interface that provides a list of options with keyboard input. Eg.
$ Choose your option:
1.  Rock
2.  Paper
3.  Scissors
4.  Lizard
5.  Spock
Adding Lizard and Spock
Challenge #2 - Adding Unit Tests

Adding Unit Tests

  • Implement unit tests using pytest or any testing module of your choice. Try to aim for 100% coverage :)

Business Logic:

Adding Lizard and Spock
Challenge #3 - Adding a REST API

Adding a REST API

  • Turn it into a REST API E.g. sending a POST /rock (or json payload) should return a 200 OK response with the result in the body

What's next?

Once you've completed the challenges, you may like to review the additional resources