#include "stdafx.h"
#include "iostream"
#include "time.h"
using namespace std;
//alidoran
int main()
{
char x,y;
cout << "player 1 input 1=stone or 2=paper or 3=clipper";
cin >> x;
cout << "player 2 input 1=stone or 2=paper or 3=clipper";
cin >> y;
if (x == '1' && y == '1') cout << "mosavi";
if (x == '1' && y == '2') cout << "player 1 win";
if (x == '1' && y == '3') cout << "player 2 win";
if (x == '2' && y == '2') cout << "mosavi";
if (x == '2' && y == '1') cout << "player 1 win";
if (x == '2' && y == '3') cout << "player 2 win";
if (x == '3' && y == '3') cout << "mosavi";
if (x == '3' && y == '2') cout << "player 1 win";
if (x == '3' && y == '1') cout << "player 2 win";
system("pause");
return 0;
}
- ۹۶/۱۱/۱۹