if (myChoice == (comChoice + 1) % 3)
{
Console.WriteLine("컴퓨터 승리");
}
else if (myChoice == (comChoice + 2) % 3)
{
Console.WriteLine("플레이어 승리");
}
else
{
Console.WriteLine("비겼습니다.");
}
나만 몰랐던 거임?
if (myChoice == (comChoice + 1) % 3)
{
Console.WriteLine("컴퓨터 승리");
}
else if (myChoice == (comChoice + 2) % 3)
{
Console.WriteLine("플레이어 승리");
}
else
{
Console.WriteLine("비겼습니다.");
}
나만 몰랐던 거임?
응 - dc Cpp
이거가 뭔데
바위(0) 가위(1) 보(2)