public static void Main()
Console.WriteLine(" |0|1|2|3|4|5|6|7|");
Console.Write("{0}|", i);
switch(hra.playboard[i,j])
Console.Write('\x25CF'+"|");
Console.Write('\x25CB'+"|");
Console.Write('\x25B2'+"|");
Console.Write('\x25B3'+"|");
Console.Write('\x25A0'+"|");
Console.Write(hra.playboard[i,j]+"|");
this.playboard = new int[8,8]{{1,5,1,5,0,5,2,5},{5,1,5,0,5,2,5,2},{1,5,1,5,0,5,2,5},{5,1,5,0,5,2,5,2},{1,5,1,5,0,5,2,5},{5,1,5,0,5,2,5,2},{1,5,1,5,0,5,2,5},{5,1,5,0,5,2,5,2}};
public void Move(int[] what, int[] where)
if(this.playerRound == 2 && this.playboard[what[0], what[1]] == 2)
this.playboard[where[0], where[1]] = 4;
if(this.playerRound == 1 && this.playboard[what[0], what[1]] == 1)
this.playboard[where[0], where[1]] = 3;
this.playboard[where[0], where[1]] = this.playboard[what[0], what[1]];
this.playboard[what[0], what[1]] = 0;
private bool MoveOK(int[] what, int[] where)
if(this.playboard[where[0], where[1]] == 0)
if(this.playerRound == 1)
switch(this.playboard[what[0], what[1]])
foreach(int item in arr1)
if(what[0]+item*1 == where[0] && what[1]+e*1 == where[1])
if(what[0]+item*2 == where[0] && what[1]+e*2 == where[1] && (this.playboard[what[0]+item*1, what[1]+e*1] == c || this.playboard[what[0]+item*1, what[1]+e*1] == d))
this.playboard[what[0]+item*1, what[1]+e*1] = 0;
int[,] arr2 = {{1,1},{1,-1},{-1,1},{-1,-1}};
if(what[0]+a*i == where[0] && what[1]+b*i == where[1])
if(this.playboard[what[0]+a*j, what[1]+b*j] == c || this.playboard[what[0]+a*j, what[1]+b*j] == d)
this.playboard[what[0]+a*j, what[1]+b*j] = 0;
Console.WriteLine("tady neni zadna figurka");
Console.WriteLine(this.playboard[what[0], what[1]]);
Console.WriteLine("destinace obsazena");
Console.WriteLine("figurka nema opravneni na vstup");