einumform1.cs.svn-base
来自「8数码的广度优先算法和A*算法。可以查找出最佳路径」· SVN-BASE 代码 · 共 54 行
SVN-BASE
54 行
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace eightnum
{
public partial class EiNumForm1 : Form
{
private int[,] table;//8数码表
public int[,] Table
{
get
{
return table;
}
set
{
table = value;
}
}
private Generation gen;//能自动产生随机数的棋盘
public Generation Gen
{
get
{
return gen;
}
set
{
gen = value;
}
}
public EiNumForm1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
gen = new Generation();
gen.GenRandom();
for (int i = 0; i < 3; i++)
for (int j = 0; j < 3; j++)
Table= gen.Table[i, j].ToString();
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?