The use of C # 8 digital algorithm
no vote
Application background using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EightPuzzleState
{
class Program
{
static int[] GoalState = { 0, 0, 0, 0, 0, 0, 0, 0, 0 };
static int[] CurrentState = { 0, 0, 0, 0, 0, 0, 0, 0, 0 };
static int[] ChildState = { 0, 0, 0, 0, 0, 0, 0, 0, 0 };
static void Main(string[] args)
{
int[] InitialState = { 2, 8, 3, 1, 6, 4, 7, 0, 5 };
GetGoalState(InitialState, GoalState);
Console.Write