enum Gesture { Rock, Paper, Scissors, Lizard, Spock, Lava, Water }
public static void Main(string[] args)
Random rand = new Random();
Gesture computerGesture = (Gesture)rand.Next(0, 7);
Console.Write("Enter your gesture (rock, paper, scissors, lizard, spock, lava, water): ");
string userInput = Console.ReadLine().ToLower();
if (!Enum.TryParse(userInput, true, out userGesture))
Console.WriteLine("Invalid gesture. Try again.");
Console.WriteLine("Computer chooses " + computerGesture.ToString().ToLower());
if (userGesture == computerGesture)
Console.WriteLine("Tie!");
else if ((userGesture == Gesture.Rock && (computerGesture == Gesture.Scissors || computerGesture == Gesture.Lizard || computerGesture == Gesture.Water)) ||
(userGesture == Gesture.Paper && (computerGesture == Gesture.Rock || computerGesture == Gesture.Spock)) ||
(userGesture == Gesture.Scissors && (computerGesture == Gesture.Paper || computerGesture == Gesture.Lizard)) ||
(userGesture == Gesture.Lizard && (computerGesture == Gesture.Paper || computerGesture == Gesture.Spock || computerGesture == Gesture.Lava)) ||
(userGesture == Gesture.Spock && (computerGesture == Gesture.Rock || computerGesture == Gesture.Scissors)) ||
(userGesture == Gesture.Lava && (computerGesture == Gesture.Rock || computerGesture == Gesture.Scissors || computerGesture == Gesture.Paper)) ||
(userGesture == Gesture.Water && (computerGesture == Gesture.Rock || computerGesture == Gesture.Spock || computerGesture == Gesture.Lava)))
Console.WriteLine("You win!");
Console.WriteLine("Computer wins!");