حل السؤال
حل السؤال 44
import 'dart:io';
void main() {
print("Welcome to the Challenge Game!");
print("Choose one of the following options: ");
print("1- Player vs. Computer");
print("2- Player vs. Player");
print("3- Group vs. Group");
print("4- Exit");
int choice = int.parse(stdin.readLineSync()!);
switch (choice) {
case 1:
print("Player vs. Computer game started");
break;
case 2:
print("Player vs. Player game started");
break;
case 3:
print("Group vs. Group game started");
break;
case 4:
print("Exit");
break;
default:
print("Invalid input");
}
}

