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. This legendary duel follows ancient rules where different winning moves earn different points, making strategy crucial for victory.
Your task is to create a system that simulates the legendary duel between Rok and Papyra. You’ll need to implement the scoring system, track each warrior’s moves over multiple rounds, and determine the winner of this fate-determining battle.
In this adventure, you’ll learn to use GitHub Copilot Agent Mode - an autonomous AI assistant that can understand complex tasks and break them down into multiple steps, creating entire applications from scratch!
Before starting this adventure, you’ll need to perform the following steps:
By completing this adventure with Agent Mode, you’ll learn:
Now let’s define the requirements for the legendary duel simulation so that you can start using Agent Mode effectively!
In the Chat panel with “Agent” mode selected, provide a comprehensive prompt like:
Create a complete legendary duel simulation system for the warriors of Stonevale. The system should:
1. Create a console application in JavaScript (or your preferred language)
2. Define two warriors: Rok and Papyra with their predefined move sequences
3. Rok moves: [scissors, paper, scissors, rock, rock]
4. Papyra moves: [rock, rock, paper, scissors, paper]
5. Implement the duel logic with scoring system:
- Rock win = 1 point, Paper win = 2 points, Scissors win = 3 points
- Standard rock-paper-scissors rules apply
6. Simulate all 5 rounds of the duel
7. Track scores and determine the winner
8. Include beautiful console output with medieval/fantasy theme
9. Add proper error handling and documentation
10. Make the code readable and maintainable
Please create the project structure, write the code, and test it.
Agent Mode will autonomously:
You’ll see each step in the UI, showing every tool invocation.
As Agent Mode works, you can:
Once your basic system works, try asking Agent Mode to:
Enhance the legendary duel system with these features:
1. Add beautiful ASCII art representations of Rok and Papyra
2. Create visual representations of rock, paper, and scissors moves
3. Add a tournament system with multiple duels
4. Include a hint system suggesting optimal moves
5. Generate detailed battle reports and statistics
6. Create unit tests for the duel logic
7. Add sound effect descriptions for each move and outcome
When your Agent Mode implementation is complete, running the application should produce output similar to the following. AI is non-deterministic, so your results may vary slightly, but the structure should be similar.
⚔️ Welcome to the Legendary Duel of Stonevale! ⚔️
🏛️ In the ancient arena of Scissoria, two warriors face destiny...
🛡️ Rok the Stone Warrior vs 📜 Papyra the Swift
=== Round 1 ===
⚔️ Rok chooses: Scissors ✂️
🛡️ Papyra chooses: Rock 🪨
🏆 Papyra wins! Rock crushes scissors (+1 point)
Current Scores: Rok: 0 | Papyra: 1
=== Round 2 ===
⚔️ Rok chooses: Paper 📜
🛡️ Papyra chooses: Rock 🪨
🏆 Rok wins! Paper covers rock (+2 points)
Current Scores: Rok: 2 | Papyra: 1
=== Round 3 ===
⚔️ Rok chooses: Scissors ✂️
🛡️ Papyra chooses: Paper 📜
🏆 Rok wins! Scissors cut paper (+3 points)
Current Scores: Rok: 5 | Papyra: 1
=== Round 4 ===
⚔️ Rok chooses: Rock 🪨
🛡️ Papyra chooses: Scissors ✂️
🏆 Rok wins! Rock crushes scissors (+1 point)
Current Scores: Rok: 6 | Papyra: 1
=== Round 5 ===
⚔️ Rok chooses: Rock 🪨
🛡️ Papyra chooses: Paper 📜
🏆 Papyra wins! Paper covers rock (+2 points)
Final Scores: Rok: 6 | Papyra: 3
👑 ROK THE STONE WARRIOR WINS THE LEGENDARY DUEL! 👑
🏛️ Rok's tribe shall prosper for the next century in Stonevale! 🏛️
Tool Confirmation & Limits:
If Agent Mode isn’t working:
chat.agent.enabled
is checkedAfter trying out Agent Mode with this adventure:
Remember: Agent Mode is your autonomous coding partner. Give it clear goals, let it work, and iterate together to build amazing software!