#include<iostream>
#include<ctime>
#include<cstdlib>
using namespace std;
int main()
{
// 任务1 玩家出招
cout << "请输入你的选择:"<< endl;
cout << "1、石头" << endl;
cout << "2、剪刀" << endl;
cout << "3、布" << endl;
int a;
cin >> a;
cout << "你的选择是:" << a << endl;
if(a == 1)
{
cout << "你出的石头" << endl;
}
if(a == 2)
{
cout << "你出的剪刀" << endl;
}
if(a == 3)
{
cout << "你出的布" << endl;
}
// 任务2 AI出招
//srand(time(0)); //评测时请注释掉这行数据
int b = rand()%3 + 1;