In the mystical realm of Stonevale, two warriors, Rok and Papyra, are chosen for a duel that determines the fate of their tribes for the next century. The arena, known as Scissoria, is where each move carries weight and consequences.
Your task is to simulate the duel between Rok and Papyra. Each warrior makes a series of moves, and each move has a specific outcome. To win the duel, a warrior must accumulate the highest score over a series of rounds.
Player Moves:
Moves for Rok (Player 1)
Round 1 | Round 2 | Round 3 | Round 4 | Round 5 |
---|---|---|---|---|
scissors | paper | scissors | rock | rock |
Moves for Paprya (Player 2)
Round 1 | Round 2 | Round 3 | Round 4 | Round 5 |
---|---|---|---|---|
rock | rock | paper | scissors | paper |
stonevale
and add a file named app.js
.stonevale
and add a file named app.py
.stonevale
and run dotnet new console
.See if you can use Copilot to find out the complexity (BigO notation) of the code.
Open the GitHub Copilot Chat view in the sidebar if it’s not already open. Make sure your solution file is still open as well.
Ask Copilot Chat what the complexity of the code is.
Ask Copilot Chat to make the code more efficient.
Ask for the complexity again - is it better?
Highlight all of the code with Ctrl/Cmd+A.
Press Ctrl/Cmd+I to open the inline chat.
Type “/doc”
Ask Copilot Chat to document the function.
Open GitHub Copilot Chat in the sidebar.
Type “/simplify” and press Enter. You can also add any text you want after the “/simplify” to give Copilot more instructions.
What did Copilot Chat suggest you do to make it simpler?
Copilot Chat can help with that too! Just copy the error message and paste it into Chat. Often that’s all Copilot needs to resolve your issue.