向各位大哥大姐求一点C#编写的小游戏源代码!!(最好新颖一点的)

来源:百度知道 编辑:UC知道 时间:2024/05/16 14:40:36
感谢大家的关注,不过有一点小小的问题,这源代码怎么不能运行啊?using System.Linq;这一句是不是少什么东西啊?

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace NumberPuzzle
{
class Program
{
/// <summary>
/// Num Puzzle
/// ^^**
/// </summary>
/// <param name="args"></param>
static void Main(string[] args)
{
string numPazzle = string.Empty;
string numLength = string.Empty;
int count = 0;
int countMax = 0;

Console.WriteLine("How long do you want?[0<n<11] \"Suggestion : 4\"");

while (true)
{
numLength = Console.ReadLine();
if (IsNum(numLength))
{
countMax = Convert.ToInt32(numLength);