1.玩家类
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CaiQuanGame
{
class Player
{
public string FistName
{
get;
set;
}
public int ShowFist(string fist)
{
int result = -1;
switch (fist)
{
这是一个使用C#编写的猜拳游戏程序,包括玩家类、电脑类和裁判类的实现。玩家类和电脑类分别负责玩家和电脑的出拳逻辑,裁判类用于判断胜负。在按钮点击事件中调用游戏开始方法,展示出拳结果并更新UI。
订阅专栏 解锁全文
1129

被折叠的 条评论
为什么被折叠?



