資源簡介
這是我大學的時候幫學校開發的赴日比賽項目,能贏這個軟件的人,目前除了我還么出現.大家可以試一試.過去7年了,我再玩這個程序,感慨頗多.關于C#.NET技術,可以加我

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Text;
using?System.Windows.Forms;
namespace?黑白棋完整版
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????????//顏色選擇框的初始化顏色為藍色
????????????colorPickerButton1.SelectedColor?=?Color.Green;
????????????for?(int?i?=?1;?i?<=?(int)numericUpDown1.Value;?i++)
????????????{
????????????????ComBox_X.Items.Add(i.ToString());
????????????????ComBox_Y.Items.Add(i.ToString());
????????????}
????????}
????????//數字變動時label的text也跟著變動
????????private?void?numericUpDown1_ValueChanged(object?sender?EventArgs?e)
????????{
????????????lab_N.Text?=?numericUpDown1.Value.ToString();
????????????ComBox_X.Items.Clear();
????????????ComBox_Y.Items.Clear();
????????????ComBox_AllDifficult.Items.Clear();
????????????ComBox_X.Text?=?““;
????????????ComBox_Y.Text?=?““;
????????????for?(int?i?=?1;?i?<=?(int)numericUpDown1.Value;?i++)
????????????{
????????????????ComBox_X.Items.Add(i.ToString());
????????????????ComBox_Y.Items.Add(i.ToString());
????????????}
????????}
????????//點擊下一步按鈕
????????private?void?btn_Next_Click(object?sender?EventArgs?e)
????????{
????????????if?(comboBoxEx1.Text?==?“Computer“)
????????????{
????????????????Form2_CVP?f2c?=?new?Form2_CVP((int)numericUpDown1.ValueColor.FromArgb(colorPickerButton1.SelectedColor.ToArgb())ComBox_AllDifficult);
????????????????f2c.Show();
????????????}
????????????else
????????????{
????????????????Form2_PVP?f2p?=?new?Form2_PVP((int)numericUpDown1.ValueColor.FromArgb(colorPickerButton1.SelectedColor.ToArgb())ComBox_AllDifficult);
???????????????
????????????????f2p.Show();
????????????}
????????????this.Hide();
????????}
????????//添加障礙點
????????private?void?btn_Add_Difficult_Click(object?sender?EventArgs?e)
????????{
????????????int?num_mid?=?(int)numericUpDown1.Value/?2;
????????????if(!ComBox_AllDifficult.Items.Contains(ComBox_X.Text+““+ComBox_Y.Text))
????????????{
????????????????if?(ComBox_X.Text?!=?““?&&?ComBox_Y.Text?!=?““)
????????????????{
????????????????????int?x=Convert.ToInt32(ComBox_X.Text);
????????????????????int?y=Convert.ToInt32(ComBox_Y.Text);
????????????????????if?((x?==?num_mid?&&?y?==?num_mid)?||?(y?==?num_mid?&&?x?==?num_mid?+?1)?||?(y?==?num_mid?+?1?&&?x?==?num_mid?+?1)?||?(y?==?num_mid?+?1?&&?x?==?num_mid))
????????????????????{
????????????????????????MessageBox.Show(“請不要選擇初始化棋子的四個點為障礙點“);
????????????????????}
????????????????????else
????????????????????{
????????????????????????ComBox_AllDifficult.Items.Add(ComBox_X.Text?+?““?+?ComBox_Y.Text);
????????????????????????ComBox_AllDifficult.Text?=?ComBox_X.Text?+?““?+?ComBox_Y.Text;
????????????????????}
????????????????????
????????????????}
????????????}
????????}
????????//刪除手游障礙點
????????private?void?btn_delete_AllDifficult_Click(object?sender?EventArgs?e)
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????2482176??2007-06-28?18:03??黑白棋完整版\exe\DevComponents.DotNetBar2.dll
?????文件??????36482??2006-03-24?15:05??黑白棋完整版\exe\down.wav
?????文件?????102400??2014-08-28?09:50??黑白棋完整版\exe\黑白棋完整版.exe
?????文件?????175616??2014-08-28?09:50??黑白棋完整版\exe\黑白棋完整版.pdb
?????文件???????1078??2008-01-28?21:21??黑白棋完整版\ICON.ico
?????文件????2482176??2007-06-28?18:03??黑白棋完整版\黑白棋完整版\bin\Debug\DevComponents.DotNetBar2.dll
?????文件??????36482??2006-03-24?15:05??黑白棋完整版\黑白棋完整版\bin\Debug\down.wav
?????文件?????102400??2014-08-28?09:50??黑白棋完整版\黑白棋完整版\bin\Debug\黑白棋完整版.exe
?????文件?????175616??2014-08-28?09:50??黑白棋完整版\黑白棋完整版\bin\Debug\黑白棋完整版.pdb
?????文件???????3293??2008-01-30?10:47??黑白棋完整版\黑白棋完整版\Form1.cs
?????文件??????26501??2008-01-29?22:55??黑白棋完整版\黑白棋完整版\Form1.Designer.cs
?????文件???????6392??2008-01-29?22:55??黑白棋完整版\黑白棋完整版\Form1.resx
?????文件???????1793??2008-01-29?23:01??黑白棋完整版\黑白棋完整版\Form2_CVP.cs
?????文件??????14003??2008-01-28?18:14??黑白棋完整版\黑白棋完整版\Form2_CVP.Designer.cs
?????文件???????5814??2008-01-28?18:14??黑白棋完整版\黑白棋完整版\Form2_CVP.resx
?????文件???????1302??2008-01-29?23:01??黑白棋完整版\黑白棋完整版\Form2_PVP.cs
?????文件??????12992??2008-01-28?18:08??黑白棋完整版\黑白棋完整版\Form2_PVP.Designer.cs
?????文件???????5814??2008-01-28?18:08??黑白棋完整版\黑白棋完整版\Form2_PVP.resx
?????文件?????136901??2008-02-21?02:04??黑白棋完整版\黑白棋完整版\Form_CVP_Main.cs
?????文件??????28763??2008-01-30?15:58??黑白棋完整版\黑白棋完整版\Form_CVP_Main.designer.cs
?????文件???????9468??2008-01-30?15:58??黑白棋完整版\黑白棋完整版\Form_CVP_Main.resx
?????文件??????78529??2008-02-21?02:03??黑白棋完整版\黑白棋完整版\Form_PVP_Main.cs
?????文件??????29633??2008-01-30?15:58??黑白棋完整版\黑白棋完整版\Form_PVP_Main.designer.cs
?????文件???????9468??2008-01-30?15:58??黑白棋完整版\黑白棋完整版\Form_PVP_Main.resx
?????文件???????1078??2008-01-28?21:21??黑白棋完整版\黑白棋完整版\ICON.ico
?????文件??????13143??2014-08-28?09:47??黑白棋完整版\黑白棋完整版\obj\Debug\ResolveAssemblyReference.cache
?????文件???????1098??2014-08-28?09:47??黑白棋完整版\黑白棋完整版\obj\Debug\黑白棋完整版.csproj.GenerateResource.Cache
?????文件?????102400??2014-08-28?09:50??黑白棋完整版\黑白棋完整版\obj\Debug\黑白棋完整版.exe
?????文件????????680??2014-08-28?09:47??黑白棋完整版\黑白棋完整版\obj\Debug\黑白棋完整版.Form1.resources
?????文件????????180??2014-08-28?09:47??黑白棋完整版\黑白棋完整版\obj\Debug\黑白棋完整版.Form2_CVP.resources
............此處省略29個文件信息
- 上一篇:C# teechart
- 下一篇:數據結構(C#語言描述-陳廣
評論
共有 條評論