• 大小: 118KB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2021-05-13
  • 语言: C#
  • 标签: C#  

资源简介

C#编写的程序,一个极其简单的小游戏,可以用来交作业,哈哈,功能不是很多。有感兴趣的可以下载看看。可以在vs2013中直接打开,是源码!!!

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace BigHomework
{

    public partial class Form1 : Form
    {
        char player1 = ‘A‘;
        char player2 = ‘B‘;
        char turn ;
        bool p1stop = false;
        bool p2stop = false;
        int[] step = new int[27];
        Random ra = new Random();
        int step1 = 1;
        int step2 = 1;
        int tep = 0;
        public Form1()
        {
            
            turn = player1;
            InitializeComponent();
            get_location();
        }

        private void Form1_Load(object sender EventArgs e)
        {

        }

        private void start_Click(object sender EventArgs e)
        {

        }

        private void label1_Click(object sender EventArgs e)
        {

        }

        private void pictureBox25_Click(object sender EventArgs e)
        {

        }

        //判断A、B玩家的位置
        private void get_location()
        {
            textBox1.Name = “textBox“ + 1;
            textBox2.Name = “textBox“ + 2;
            textBox3.Name = “textBox“ + 3;
            textBox4.Name = “textBox“ + 4;
            textBox5.Name = “textBox“ + 5;
            textBox6.Name = “textBox“ + 6;
            textBox7.Name = “textBox“ + 7;
            textBox8.Name = “textBox“ + 8;
            textBox9.Name = “textBox“ + 9;
            textBox10.Name = “textBox“ + 10;
            textBox11.Name = “textBox“ + 11;
            textBox12.Name = “textBox“ + 12;
            textBox13.Name = “textBox“ + 13;
            textBox14.Name = “textBox“ + 14;
            textBox15.Name = “textBox“ + 15;
            textBox16.Name = “textBox“ + 16;
            textBox17.Name = “textBox“ + 17;
            textBox18.Name = “textBox“ + 18;
            textBox19.Name = “textBox“ + 19;
            textBox20.Name = “textBox“ + 20;
            textBox21.Name = “textBox“ + 21;
            textBox22.Name = “textBox“ + 22;
            textBox23.Name = “textBox“ + 23;
            textBox24.Name = “textBox“ + 24;
            textBox25.Name = “textBox“ + 25;
            textBox26.Name = “textBox“ + 26;
            this.Controls.Add(textBox1);
            this.Controls.Add(textBox2); 
            this.Controls.Add(textBox3);
            this.Controls.Add(textBox4);
            this.Controls.Add(textBox5);
            this.Controls.Add(textBox6);
            this.Controls.Add(textBox7);
            this.Controls.Add(textBox8);
            this.Controls.Add(textBox9);
            this.Controls.Add(textBox10);
            this.Controls.Add(textBox11);
            this.Controls.Add(textBox12);
            this.Controls.Add(textBox13);
            this.Controls.Add(textBox14);
            this.Controls.Add(textBox15);
            this.Contro

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-12-13 15:11  2016188103_金忠煜_大作业\
     目录           0  2018-12-20 19:48  2016188103_金忠煜_大作业\BigHomework\
     文件        1002  2018-12-13 15:11  2016188103_金忠煜_大作业\BigHomework.sln
     文件       37888  2018-12-20 20:20  2016188103_金忠煜_大作业\BigHomework.v12.suo
     文件         187  2018-12-13 15:11  2016188103_金忠煜_大作业\BigHomework\App.config
     文件        3802  2018-12-13 15:27  2016188103_金忠煜_大作业\BigHomework\BigHomework.csproj
     目录           0  2018-12-13 15:11  2016188103_金忠煜_大作业\BigHomework\bin\
     目录           0  2018-12-13 15:50  2016188103_金忠煜_大作业\BigHomework\bin\Debug\
     文件       73216  2018-12-20 20:12  2016188103_金忠煜_大作业\BigHomework\bin\Debug\BigHomework.exe
     文件         187  2018-12-13 15:11  2016188103_金忠煜_大作业\BigHomework\bin\Debug\BigHomework.exe.config
     文件       34304  2018-12-20 20:12  2016188103_金忠煜_大作业\BigHomework\bin\Debug\BigHomework.pdb
     文件       23168  2018-12-20 19:25  2016188103_金忠煜_大作业\BigHomework\bin\Debug\BigHomework.vshost.exe
     文件         187  2018-12-13 15:11  2016188103_金忠煜_大作业\BigHomework\bin\Debug\BigHomework.vshost.exe.config
     文件         490  2018-04-12 07:35  2016188103_金忠煜_大作业\BigHomework\bin\Debug\BigHomework.vshost.exe.manifest
     文件       12381  2018-12-20 19:48  2016188103_金忠煜_大作业\BigHomework\Form1.cs
     文件       43210  2018-12-20 19:29  2016188103_金忠煜_大作业\BigHomework\Form1.Designer.cs
     文件       72980  2018-12-20 19:35  2016188103_金忠煜_大作业\BigHomework\Form1.resx
     目录           0  2018-12-13 15:11  2016188103_金忠煜_大作业\BigHomework\obj\
     目录           0  2018-12-20 20:12  2016188103_金忠煜_大作业\BigHomework\obj\Debug\
     文件         681  2018-12-20 19:25  2016188103_金忠煜_大作业\BigHomework\obj\Debug\BigHomework.csproj.FileListAbsolute.txt
     文件         977  2018-12-20 19:35  2016188103_金忠煜_大作业\BigHomework\obj\Debug\BigHomework.csproj.GenerateResource.Cache
     文件        2211  2018-12-17 08:50  2016188103_金忠煜_大作业\BigHomework\obj\Debug\BigHomework.csprojResolveAssemblyReference.cache
     文件       73216  2018-12-20 20:12  2016188103_金忠煜_大作业\BigHomework\obj\Debug\BigHomework.exe
     文件       47328  2018-12-20 19:35  2016188103_金忠煜_大作业\BigHomework\obj\Debug\BigHomework.Form1.resources
     文件       34304  2018-12-20 20:12  2016188103_金忠煜_大作业\BigHomework\obj\Debug\BigHomework.pdb
     文件         180  2018-12-13 15:50  2016188103_金忠煜_大作业\BigHomework\obj\Debug\BigHomework.Properties.Resources.resources
     文件        1453  2018-12-13 16:00  2016188103_金忠煜_大作业\BigHomework\obj\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        6951  2018-12-13 15:11  2016188103_金忠煜_大作业\BigHomework\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件           0  2018-12-13 15:11  2016188103_金忠煜_大作业\BigHomework\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
     文件           0  2018-12-13 15:11  2016188103_金忠煜_大作业\BigHomework\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
     文件           0  2018-12-13 15:11  2016188103_金忠煜_大作业\BigHomework\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
............此处省略8个文件信息

评论

共有 条评论