Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Make a simple game of ACI. Yeah, I just made that up. A player can pick Archer, Cavalry, or Infantry. If both players pick the
Make a simple game of ACI. Yeah, I just made that up.
A player can pick Archer, Cavalry, or Infantry.
If both players pick the same, just output that they tied.
Otherwise Archer beats Infantry, Calvary beat Archer, Infantry beat Calvary.
Ask the user for their pick.
Just assume the AI picks Infantry
Display what both players picked and who won.
Example output:
Pick 1)Infantry 2)Archer 3)Cavalry
1
We both picked Infantry. That's a tie.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started