public Puzzle_board(IAlgoritm currentAlgoritm) { //this.board= new int[3,3]; this.board = new int[3, 3] { { 1, 2, 3 }, { 4, 5, 6 }, { 0, 7, 8 } }; this.currentAlgoritm = currentAlgoritm; this.stopwat = new Stopwatch(); }
private Puzzle_board(Puzzle_board gh) { this.board = new int[gh.board.GetLength(0), gh.board.GetLength(1)]; for (int i = 0; i < gh.board.GetLength(0); i++) { for (int j = 0; j < gh.board.GetLength(1); j++) { this.board[i, j] = gh.board[i, j]; } } this.currentAlgoritm = gh.currentAlgoritm; this.stopwat = new Stopwatch(); }
private Chess_board(Chess_board gh) { this.board = new int[gh.board.GetLength(0), gh.board.GetLength(1)]; for (int i = 0; i < gh.board.GetLength(0); i++) { for (int j = 0; j < gh.board.GetLength(1); j++) { this.board[i, j] = gh.board[i, j]; } } this.currentAlgoritm = gh.currentAlgoritm; this.stopwat = gh.stopwat; }
public T Execute(IAlgoritm <T> algoritm, string text) { return(algoritm.Execute(text)); }
public Chess_board(IAlgoritm currentAlgoritm) { this.board = new int[8, 8]; this.currentAlgoritm = currentAlgoritm; this.stopwat = new Stopwatch(); }