教你编写猜拳小游戏

教你编写史上最无聊的游戏,和系统玩石头剪子布!(猜拳小游戏)

#include 
#include 
#include 
#include 

using namespace std;

string abb(string pl,string sy)
{
	string d;
	if (pl == "石头" && sy == "石头") d = "平局!";
	if (pl == "石头" && sy == "剪刀") d = "你赢了!"; 
	if (pl == "石头" && sy == "布") d = "你输了!";
	if (pl == "剪刀" && sy == "石头") d = "你输了!";
	if (pl == "剪刀" && sy == "剪刀") d = "平局!"; 
	if (pl == "剪刀" && sy == "布") d = "你赢了!";
	if (pl == "布" && sy == "石头") d = "你赢了!";
	if (pl == "布

你可能感兴趣的:(c++,游戏,猜拳小游戏,原创,栩哥工作室)