????????_???????????
???????????? ???????[ 2014/7/22 10:45:57 ] ????????????? Net ???????
????3.?????????????A??B???ж???ν??д????????
??????????????????£?
/// <summary>
/// ???AB????
/// </summary>
/// <param name="playernumber"></param>
static void Action(int playernumber)
{
#region ?????????
Random rand = new Random(); //?????????
int step = 0; //?洢??????????????
string msg = ""; //?????????
Console.WriteLine("{0}????????????????"?? players[playernumber]);
ConsoleKeyInfo rec = Console.ReadKey(true);
step = rand.Next(1?? 7);
msg = "";
if (rec.Key == ConsoleKey.Backspace && (rec.Modifiers == ConsoleModifiers.Shift|rec.Modifiers == ConsoleModifiers.Control))
{
ConsoleKeyInfo rec2 = Console.ReadKey(true);
if (rec2.Key == ConsoleKey.Tab)
{
step = 30;
}
}
Console.WriteLine("{0}??????{1}"?? players[playernumber]?? step);
Console.WriteLine("????????????ж?........");
Console.ReadKey(true);
playerPos[playernumber] = playerPos[playernumber] + step;
CheckPos();
//???A????????B??B???????
if (playerPos[playernumber] == playerPos[1 - playernumber])
{
playerPos[1 - playernumber] = 0;
msg = string.Format("{0}?????{1}??{1}??????"?? players[playernumber]?? players[1 - playernumber]);
}
else //??????????ж??????????????
{
switch (map[playerPos[playernumber]])
{
case 0:
//???
break;
case 1:
//????????
Console.Clear();
DrawMap();
Console.WriteLine("???????????????????????????");
Console.WriteLine("1---????λ?? 2---??????");
int userSelect = ReadInt(1?? 2);
if (userSelect == 1)
{
playerPos[playernumber] = playerPos[playernumber] - playerPos[1 - playernumber];
playerPos[1 - playernumber] = playerPos[1 - playernumber] + playerPos[playernumber];
playerPos[playernumber] = playerPos[1 - playernumber] - playerPos[playernumber];
msg = string.Format("{0}????????λ??"?? players[playernumber]);
}
else
{
//???
playerPos[1] -= 6;
msg = string.Format("{0}?????{1}??{1}??6??"?? players[playernumber]?? players[1 - playernumber]);
}
break;
case 2:
//????
playerPos[0] -= 6;
msg = string.Format("{0}?????????{0}??6??"?? players[playernumber]);
break;
case 3:
//???
isStop[0] = true;
msg = string.Format("{0}????????"?? players[playernumber]);
break;
case 4:
//??????
playerPos[0] += 10;
msg = string.Format("{0}??????????????????{0}???10??"?? players[playernumber]);
break;
}
}
CheckPos();
Console.Clear();
DrawMap();
Console.WriteLine();
if (msg != "")
{
Console.WriteLine(msg);
}
Console.WriteLine("
{0}??????{1}???ж????"?? players[playernumber]?? step);
Console.WriteLine("{0}??λ???{1}"?? players[playernumber]?? playerPos[playernumber] + 1);
Console.WriteLine("{0}??λ???{1}"?? players[1 - playernumber]?? playerPos[1 - playernumber] + 1);
#endregion
}
|
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
?3????????????? 18?????200??????????????β????ù????籦 ???й????????????????Bug????????????--???3???????????????t??????????????δ????Java????????????????????????Bug?????????????????????????????????????????????Java??????????????鵥??????????????????????????????????Java???????????????Docker????????????????????10??????????????????????????????????5??????Uber????棺???????????????????????????????Bug???30?????????????????ó??????C++???????????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????