Advertisement
Eman_Santos

C# chess display board

Oct 24th, 2017
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 101.09 KB | None | 0 0
  1.         private void DisplayBoardDisplayTile(string xtile, string piece)
  2.         {
  3.             if (xtile == "a1")
  4.             {
  5.                 if (piece == "0000") { a1.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
  6.                 if (piece == "0001") { a1.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
  7.                 if (piece == "0010") { a1.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
  8.                 if (piece == "0011") { a1.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
  9.                 if (piece == "0100") { a1.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
  10.                 if (piece == "0101") { a1.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
  11.                 if (piece == "0110") { a1.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
  12.                 if (piece == "0111") { a1.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
  13.                 if (piece == "1000") { a1.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
  14.                 if (piece == "1001") { a1.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
  15.                 if (piece == "1010") { a1.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
  16.                 if (piece == "1011") { a1.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
  17.                 if (piece == "1100") { a1.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
  18.             }
  19.  
  20.             if (xtile == "b1")
  21.             {
  22.                 if (piece == "0000") { b1.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
  23.                 if (piece == "0001") { b1.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
  24.                 if (piece == "0010") { b1.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
  25.                 if (piece == "0011") { b1.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
  26.                 if (piece == "0100") { b1.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
  27.                 if (piece == "0101") { b1.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
  28.                 if (piece == "0110") { b1.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
  29.                 if (piece == "0111") { b1.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
  30.                 if (piece == "1000") { b1.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
  31.                 if (piece == "1001") { b1.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
  32.                 if (piece == "1010") { b1.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
  33.                 if (piece == "1011") { b1.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
  34.                 if (piece == "1100") { b1.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
  35.             }
  36.  
  37.             if (xtile == "c1")
  38.             {
  39.                 if (piece == "0000") { c1.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
  40.                 if (piece == "0001") { c1.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
  41.                 if (piece == "0010") { c1.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
  42.                 if (piece == "0011") { c1.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
  43.                 if (piece == "0100") { c1.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
  44.                 if (piece == "0101") { c1.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
  45.                 if (piece == "0110") { c1.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
  46.                 if (piece == "0111") { c1.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
  47.                 if (piece == "1000") { c1.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
  48.                 if (piece == "1001") { c1.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
  49.                 if (piece == "1010") { c1.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
  50.                 if (piece == "1011") { c1.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
  51.                 if (piece == "1100") { c1.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
  52.             }
  53.  
  54.             if (xtile == "d1")
  55.             {
  56.                 if (piece == "0000") { d1.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
  57.                 if (piece == "0001") { d1.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
  58.                 if (piece == "0010") { d1.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
  59.                 if (piece == "0011") { d1.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
  60.                 if (piece == "0100") { d1.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
  61.                 if (piece == "0101") { d1.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
  62.                 if (piece == "0110") { d1.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
  63.                 if (piece == "0111") { d1.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
  64.                 if (piece == "1000") { d1.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
  65.                 if (piece == "1001") { d1.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
  66.                 if (piece == "1010") { d1.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
  67.                 if (piece == "1011") { d1.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
  68.                 if (piece == "1100") { d1.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
  69.             }
  70.  
  71.             if (xtile == "e1")
  72.             {
  73.                 if (piece == "0000") { e1.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
  74.                 if (piece == "0001") { e1.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
  75.                 if (piece == "0010") { e1.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
  76.                 if (piece == "0011") { e1.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
  77.                 if (piece == "0100") { e1.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
  78.                 if (piece == "0101") { e1.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
  79.                 if (piece == "0110") { e1.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
  80.                 if (piece == "0111") { e1.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
  81.                 if (piece == "1000") { e1.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
  82.                 if (piece == "1001") { e1.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
  83.                 if (piece == "1010") { e1.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
  84.                 if (piece == "1011") { e1.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
  85.                 if (piece == "1100") { e1.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
  86.             }
  87.  
  88.             if (xtile == "f1")
  89.             {
  90.                 if (piece == "0000") { f1.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
  91.                 if (piece == "0001") { f1.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
  92.                 if (piece == "0010") { f1.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
  93.                 if (piece == "0011") { f1.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
  94.                 if (piece == "0100") { f1.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
  95.                 if (piece == "0101") { f1.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
  96.                 if (piece == "0110") { f1.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
  97.                 if (piece == "0111") { f1.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
  98.                 if (piece == "1000") { f1.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
  99.                 if (piece == "1001") { f1.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
  100.                 if (piece == "1010") { f1.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
  101.                 if (piece == "1011") { f1.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
  102.                 if (piece == "1100") { f1.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
  103.             }
  104.  
  105.             if (xtile == "g1")
  106.             {
  107.                 if (piece == "0000") { g1.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
  108.                 if (piece == "0001") { g1.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
  109.                 if (piece == "0010") { g1.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
  110.                 if (piece == "0011") { g1.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
  111.                 if (piece == "0100") { g1.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
  112.                 if (piece == "0101") { g1.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
  113.                 if (piece == "0110") { g1.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
  114.                 if (piece == "0111") { g1.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
  115.                 if (piece == "1000") { g1.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
  116.                 if (piece == "1001") { g1.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
  117.                 if (piece == "1010") { g1.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
  118.                 if (piece == "1011") { g1.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
  119.                 if (piece == "1100") { g1.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
  120.             }
  121.  
  122.             if (xtile == "h1")
  123.             {
  124.                 if (piece == "0000") { h1.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
  125.                 if (piece == "0001") { h1.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
  126.                 if (piece == "0010") { h1.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
  127.                 if (piece == "0011") { h1.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
  128.                 if (piece == "0100") { h1.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
  129.                 if (piece == "0101") { h1.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
  130.                 if (piece == "0110") { h1.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
  131.                 if (piece == "0111") { h1.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
  132.                 if (piece == "1000") { h1.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
  133.                 if (piece == "1001") { h1.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
  134.                 if (piece == "1010") { h1.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
  135.                 if (piece == "1011") { h1.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
  136.                 if (piece == "1100") { h1.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
  137.             }
  138.  
  139.             if (xtile == "a2")
  140.             {
  141.                 if (piece == "0000") { a2.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
  142.                 if (piece == "0001") { a2.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
  143.                 if (piece == "0010") { a2.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
  144.                 if (piece == "0011") { a2.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
  145.                 if (piece == "0100") { a2.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
  146.                 if (piece == "0101") { a2.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
  147.                 if (piece == "0110") { a2.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
  148.                 if (piece == "0111") { a2.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
  149.                 if (piece == "1000") { a2.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
  150.                 if (piece == "1001") { a2.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
  151.                 if (piece == "1010") { a2.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
  152.                 if (piece == "1011") { a2.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
  153.                 if (piece == "1100") { a2.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
  154.             }
  155.  
  156.             if (xtile == "b2")
  157.             {
  158.                 if (piece == "0000") { b2.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
  159.                 if (piece == "0001") { b2.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
  160.                 if (piece == "0010") { b2.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
  161.                 if (piece == "0011") { b2.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
  162.                 if (piece == "0100") { b2.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
  163.                 if (piece == "0101") { b2.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
  164.                 if (piece == "0110") { b2.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
  165.                 if (piece == "0111") { b2.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
  166.                 if (piece == "1000") { b2.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
  167.                 if (piece == "1001") { b2.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
  168.                 if (piece == "1010") { b2.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
  169.                 if (piece == "1011") { b2.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
  170.                 if (piece == "1100") { b2.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
  171.             }
  172.  
  173.             if (xtile == "c2")
  174.             {
  175.                 if (piece == "0000") { c2.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
  176.                 if (piece == "0001") { c2.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
  177.                 if (piece == "0010") { c2.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
  178.                 if (piece == "0011") { c2.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
  179.                 if (piece == "0100") { c2.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
  180.                 if (piece == "0101") { c2.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
  181.                 if (piece == "0110") { c2.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
  182.                 if (piece == "0111") { c2.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
  183.                 if (piece == "1000") { c2.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
  184.                 if (piece == "1001") { c2.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
  185.                 if (piece == "1010") { c2.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
  186.                 if (piece == "1011") { c2.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
  187.                 if (piece == "1100") { c2.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
  188.             }
  189.  
  190.             if (xtile == "d2")
  191.             {
  192.                 if (piece == "0000") { d2.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
  193.                 if (piece == "0001") { d2.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
  194.                 if (piece == "0010") { d2.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
  195.                 if (piece == "0011") { d2.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
  196.                 if (piece == "0100") { d2.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
  197.                 if (piece == "0101") { d2.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
  198.                 if (piece == "0110") { d2.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
  199.                 if (piece == "0111") { d2.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
  200.                 if (piece == "1000") { d2.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
  201.                 if (piece == "1001") { d2.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
  202.                 if (piece == "1010") { d2.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
  203.                 if (piece == "1011") { d2.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
  204.                 if (piece == "1100") { d2.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
  205.             }
  206.  
  207.             if (xtile == "e2")
  208.             {
  209.                 if (piece == "0000") { e2.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
  210.                 if (piece == "0001") { e2.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
  211.                 if (piece == "0010") { e2.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
  212.                 if (piece == "0011") { e2.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
  213.                 if (piece == "0100") { e2.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
  214.                 if (piece == "0101") { e2.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
  215.                 if (piece == "0110") { e2.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
  216.                 if (piece == "0111") { e2.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
  217.                 if (piece == "1000") { e2.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
  218.                 if (piece == "1001") { e2.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
  219.                 if (piece == "1010") { e2.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
  220.                 if (piece == "1011") { e2.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
  221.                 if (piece == "1100") { e2.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
  222.             }
  223.  
  224.             if (xtile == "f2")
  225.             {
  226.                 if (piece == "0000") { f2.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
  227.                 if (piece == "0001") { f2.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
  228.                 if (piece == "0010") { f2.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
  229.                 if (piece == "0011") { f2.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
  230.                 if (piece == "0100") { f2.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
  231.                 if (piece == "0101") { f2.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
  232.                 if (piece == "0110") { f2.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
  233.                 if (piece == "0111") { f2.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
  234.                 if (piece == "1000") { f2.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
  235.                 if (piece == "1001") { f2.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
  236.                 if (piece == "1010") { f2.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
  237.                 if (piece == "1011") { f2.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
  238.                 if (piece == "1100") { f2.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
  239.             }
  240.  
  241.             if (xtile == "g2")
  242.             {
  243.                 if (piece == "0000") { g2.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
  244.                 if (piece == "0001") { g2.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
  245.                 if (piece == "0010") { g2.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
  246.                 if (piece == "0011") { g2.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
  247.                 if (piece == "0100") { g2.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
  248.                 if (piece == "0101") { g2.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
  249.                 if (piece == "0110") { g2.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
  250.                 if (piece == "0111") { g2.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
  251.                 if (piece == "1000") { g2.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
  252.                 if (piece == "1001") { g2.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
  253.                 if (piece == "1010") { g2.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
  254.                 if (piece == "1011") { g2.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
  255.                 if (piece == "1100") { g2.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
  256.             }
  257.  
  258.             if (xtile == "h2")
  259.             {
  260.                 if (piece == "0000") { h2.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
  261.                 if (piece == "0001") { h2.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
  262.                 if (piece == "0010") { h2.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
  263.                 if (piece == "0011") { h2.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
  264.                 if (piece == "0100") { h2.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
  265.                 if (piece == "0101") { h2.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
  266.                 if (piece == "0110") { h2.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
  267.                 if (piece == "0111") { h2.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
  268.                 if (piece == "1000") { h2.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
  269.                 if (piece == "1001") { h2.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
  270.                 if (piece == "1010") { h2.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
  271.                 if (piece == "1011") { h2.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
  272.                 if (piece == "1100") { h2.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
  273.             }
  274.  
  275.             if (xtile == "a3")
  276.             {
  277.                 if (piece == "0000") { a3.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
  278.                 if (piece == "0001") { a3.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
  279.                 if (piece == "0010") { a3.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
  280.                 if (piece == "0011") { a3.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
  281.                 if (piece == "0100") { a3.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
  282.                 if (piece == "0101") { a3.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
  283.                 if (piece == "0110") { a3.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
  284.                 if (piece == "0111") { a3.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
  285.                 if (piece == "1000") { a3.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
  286.                 if (piece == "1001") { a3.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
  287.                 if (piece == "1010") { a3.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
  288.                 if (piece == "1011") { a3.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
  289.                 if (piece == "1100") { a3.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
  290.             }
  291.  
  292.             if (xtile == "b3")
  293.             {
  294.                 if (piece == "0000") { b3.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
  295.                 if (piece == "0001") { b3.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
  296.                 if (piece == "0010") { b3.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
  297.                 if (piece == "0011") { b3.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
  298.                 if (piece == "0100") { b3.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
  299.                 if (piece == "0101") { b3.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
  300.                 if (piece == "0110") { b3.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
  301.                 if (piece == "0111") { b3.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
  302.                 if (piece == "1000") { b3.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
  303.                 if (piece == "1001") { b3.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
  304.                 if (piece == "1010") { b3.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
  305.                 if (piece == "1011") { b3.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
  306.                 if (piece == "1100") { b3.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
  307.             }
  308.  
  309.             if (xtile == "c3")
  310.             {
  311.                 if (piece == "0000") { c3.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
  312.                 if (piece == "0001") { c3.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
  313.                 if (piece == "0010") { c3.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
  314.                 if (piece == "0011") { c3.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
  315.                 if (piece == "0100") { c3.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
  316.                 if (piece == "0101") { c3.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
  317.                 if (piece == "0110") { c3.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
  318.                 if (piece == "0111") { c3.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
  319.                 if (piece == "1000") { c3.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
  320.                 if (piece == "1001") { c3.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
  321.                 if (piece == "1010") { c3.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
  322.                 if (piece == "1011") { c3.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
  323.                 if (piece == "1100") { c3.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
  324.             }
  325.  
  326.             if (xtile == "d3")
  327.             {
  328.                 if (piece == "0000") { d3.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
  329.                 if (piece == "0001") { d3.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
  330.                 if (piece == "0010") { d3.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
  331.                 if (piece == "0011") { d3.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
  332.                 if (piece == "0100") { d3.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
  333.                 if (piece == "0101") { d3.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
  334.                 if (piece == "0110") { d3.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
  335.                 if (piece == "0111") { d3.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
  336.                 if (piece == "1000") { d3.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
  337.                 if (piece == "1001") { d3.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
  338.                 if (piece == "1010") { d3.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
  339.                 if (piece == "1011") { d3.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
  340.                 if (piece == "1100") { d3.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
  341.             }
  342.  
  343.             if (xtile == "e3")
  344.             {
  345.                 if (piece == "0000") { e3.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
  346.                 if (piece == "0001") { e3.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
  347.                 if (piece == "0010") { e3.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
  348.                 if (piece == "0011") { e3.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
  349.                 if (piece == "0100") { e3.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
  350.                 if (piece == "0101") { e3.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
  351.                 if (piece == "0110") { e3.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
  352.                 if (piece == "0111") { e3.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
  353.                 if (piece == "1000") { e3.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
  354.                 if (piece == "1001") { e3.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
  355.                 if (piece == "1010") { e3.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
  356.                 if (piece == "1011") { e3.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
  357.                 if (piece == "1100") { e3.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
  358.             }
  359.  
  360.             if (xtile == "f3")
  361.             {
  362.                 if (piece == "0000") { f3.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
  363.                 if (piece == "0001") { f3.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
  364.                 if (piece == "0010") { f3.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
  365.                 if (piece == "0011") { f3.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
  366.                 if (piece == "0100") { f3.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
  367.                 if (piece == "0101") { f3.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
  368.                 if (piece == "0110") { f3.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
  369.                 if (piece == "0111") { f3.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
  370.                 if (piece == "1000") { f3.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
  371.                 if (piece == "1001") { f3.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
  372.                 if (piece == "1010") { f3.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
  373.                 if (piece == "1011") { f3.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
  374.                 if (piece == "1100") { f3.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
  375.             }
  376.  
  377.             if (xtile == "g3")
  378.             {
  379.                 if (piece == "0000") { g3.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
  380.                 if (piece == "0001") { g3.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
  381.                 if (piece == "0010") { g3.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
  382.                 if (piece == "0011") { g3.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
  383.                 if (piece == "0100") { g3.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
  384.                 if (piece == "0101") { g3.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
  385.                 if (piece == "0110") { g3.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
  386.                 if (piece == "0111") { g3.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
  387.                 if (piece == "1000") { g3.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
  388.                 if (piece == "1001") { g3.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
  389.                 if (piece == "1010") { g3.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
  390.                 if (piece == "1011") { g3.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
  391.                 if (piece == "1100") { g3.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
  392.             }
  393.  
  394.             if (xtile == "h3")
  395.             {
  396.                 if (piece == "0000") { h3.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
  397.                 if (piece == "0001") { h3.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
  398.                 if (piece == "0010") { h3.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
  399.                 if (piece == "0011") { h3.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
  400.                 if (piece == "0100") { h3.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
  401.                 if (piece == "0101") { h3.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
  402.                 if (piece == "0110") { h3.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
  403.                 if (piece == "0111") { h3.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
  404.                 if (piece == "1000") { h3.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
  405.                 if (piece == "1001") { h3.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
  406.                 if (piece == "1010") { h3.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
  407.                 if (piece == "1011") { h3.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
  408.                 if (piece == "1100") { h3.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
  409.             }
  410.  
  411.             if (xtile == "a4")
  412.             {
  413.                 if (piece == "0000") { a4.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
  414.                 if (piece == "0001") { a4.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
  415.                 if (piece == "0010") { a4.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
  416.                 if (piece == "0011") { a4.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
  417.                 if (piece == "0100") { a4.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
  418.                 if (piece == "0101") { a4.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
  419.                 if (piece == "0110") { a4.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
  420.                 if (piece == "0111") { a4.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
  421.                 if (piece == "1000") { a4.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
  422.                 if (piece == "1001") { a4.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
  423.                 if (piece == "1010") { a4.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
  424.                 if (piece == "1011") { a4.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
  425.                 if (piece == "1100") { a4.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
  426.             }
  427.  
  428.             if (xtile == "b4")
  429.             {
  430.                 if (piece == "0000") { b4.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
  431.                 if (piece == "0001") { b4.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
  432.                 if (piece == "0010") { b4.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
  433.                 if (piece == "0011") { b4.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
  434.                 if (piece == "0100") { b4.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
  435.                 if (piece == "0101") { b4.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
  436.                 if (piece == "0110") { b4.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
  437.                 if (piece == "0111") { b4.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
  438.                 if (piece == "1000") { b4.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
  439.                 if (piece == "1001") { b4.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
  440.                 if (piece == "1010") { b4.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
  441.                 if (piece == "1011") { b4.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
  442.                 if (piece == "1100") { b4.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
  443.             }
  444.  
  445.             if (xtile == "c4")
  446.             {
  447.                 if (piece == "0000") { c4.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
  448.                 if (piece == "0001") { c4.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
  449.                 if (piece == "0010") { c4.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
  450.                 if (piece == "0011") { c4.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
  451.                 if (piece == "0100") { c4.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
  452.                 if (piece == "0101") { c4.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
  453.                 if (piece == "0110") { c4.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
  454.                 if (piece == "0111") { c4.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
  455.                 if (piece == "1000") { c4.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
  456.                 if (piece == "1001") { c4.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
  457.                 if (piece == "1010") { c4.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
  458.                 if (piece == "1011") { c4.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
  459.                 if (piece == "1100") { c4.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
  460.             }
  461.  
  462.             if (xtile == "d4")
  463.             {
  464.                 if (piece == "0000") { d4.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
  465.                 if (piece == "0001") { d4.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
  466.                 if (piece == "0010") { d4.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
  467.                 if (piece == "0011") { d4.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
  468.                 if (piece == "0100") { d4.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
  469.                 if (piece == "0101") { d4.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
  470.                 if (piece == "0110") { d4.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
  471.                 if (piece == "0111") { d4.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
  472.                 if (piece == "1000") { d4.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
  473.                 if (piece == "1001") { d4.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
  474.                 if (piece == "1010") { d4.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
  475.                 if (piece == "1011") { d4.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
  476.                 if (piece == "1100") { d4.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
  477.             }
  478.  
  479.             if (xtile == "e4")
  480.             {
  481.                 if (piece == "0000") { e4.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
  482.                 if (piece == "0001") { e4.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
  483.                 if (piece == "0010") { e4.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
  484.                 if (piece == "0011") { e4.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
  485.                 if (piece == "0100") { e4.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
  486.                 if (piece == "0101") { e4.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
  487.                 if (piece == "0110") { e4.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
  488.                 if (piece == "0111") { e4.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
  489.                 if (piece == "1000") { e4.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
  490.                 if (piece == "1001") { e4.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
  491.                 if (piece == "1010") { e4.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
  492.                 if (piece == "1011") { e4.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
  493.                 if (piece == "1100") { e4.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
  494.             }
  495.  
  496.             if (xtile == "f4")
  497.             {
  498.                 if (piece == "0000") { f4.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
  499.                 if (piece == "0001") { f4.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
  500.                 if (piece == "0010") { f4.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
  501.                 if (piece == "0011") { f4.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
  502.                 if (piece == "0100") { f4.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
  503.                 if (piece == "0101") { f4.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
  504.                 if (piece == "0110") { f4.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
  505.                 if (piece == "0111") { f4.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
  506.                 if (piece == "1000") { f4.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
  507.                 if (piece == "1001") { f4.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
  508.                 if (piece == "1010") { f4.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
  509.                 if (piece == "1011") { f4.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
  510.                 if (piece == "1100") { f4.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
  511.             }
  512.  
  513.             if (xtile == "g4")
  514.             {
  515.                 if (piece == "0000") { g4.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
  516.                 if (piece == "0001") { g4.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
  517.                 if (piece == "0010") { g4.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
  518.                 if (piece == "0011") { g4.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
  519.                 if (piece == "0100") { g4.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
  520.                 if (piece == "0101") { g4.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
  521.                 if (piece == "0110") { g4.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
  522.                 if (piece == "0111") { g4.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
  523.                 if (piece == "1000") { g4.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
  524.                 if (piece == "1001") { g4.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
  525.                 if (piece == "1010") { g4.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
  526.                 if (piece == "1011") { g4.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
  527.                 if (piece == "1100") { g4.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
  528.             }
  529.  
  530.             if (xtile == "h4")
  531.             {
  532.                 if (piece == "0000") { h4.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
  533.                 if (piece == "0001") { h4.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
  534.                 if (piece == "0010") { h4.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
  535.                 if (piece == "0011") { h4.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
  536.                 if (piece == "0100") { h4.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
  537.                 if (piece == "0101") { h4.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
  538.                 if (piece == "0110") { h4.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
  539.                 if (piece == "0111") { h4.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
  540.                 if (piece == "1000") { h4.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
  541.                 if (piece == "1001") { h4.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
  542.                 if (piece == "1010") { h4.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
  543.                 if (piece == "1011") { h4.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
  544.                 if (piece == "1100") { h4.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
  545.             }
  546.  
  547.             if (xtile == "a5")
  548.             {
  549.                 if (piece == "0000") { a5.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
  550.                 if (piece == "0001") { a5.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
  551.                 if (piece == "0010") { a5.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
  552.                 if (piece == "0011") { a5.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
  553.                 if (piece == "0100") { a5.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
  554.                 if (piece == "0101") { a5.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
  555.                 if (piece == "0110") { a5.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
  556.                 if (piece == "0111") { a5.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
  557.                 if (piece == "1000") { a5.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
  558.                 if (piece == "1001") { a5.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
  559.                 if (piece == "1010") { a5.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
  560.                 if (piece == "1011") { a5.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
  561.                 if (piece == "1100") { a5.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
  562.             }
  563.  
  564.             if (xtile == "b5")
  565.             {
  566.                 if (piece == "0000") { b5.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
  567.                 if (piece == "0001") { b5.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
  568.                 if (piece == "0010") { b5.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
  569.                 if (piece == "0011") { b5.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
  570.                 if (piece == "0100") { b5.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
  571.                 if (piece == "0101") { b5.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
  572.                 if (piece == "0110") { b5.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
  573.                 if (piece == "0111") { b5.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
  574.                 if (piece == "1000") { b5.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
  575.                 if (piece == "1001") { b5.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
  576.                 if (piece == "1010") { b5.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
  577.                 if (piece == "1011") { b5.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
  578.                 if (piece == "1100") { b5.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
  579.             }
  580.  
  581.             if (xtile == "c5")
  582.             {
  583.                 if (piece == "0000") { c5.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
  584.                 if (piece == "0001") { c5.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
  585.                 if (piece == "0010") { c5.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
  586.                 if (piece == "0011") { c5.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
  587.                 if (piece == "0100") { c5.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
  588.                 if (piece == "0101") { c5.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
  589.                 if (piece == "0110") { c5.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
  590.                 if (piece == "0111") { c5.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
  591.                 if (piece == "1000") { c5.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
  592.                 if (piece == "1001") { c5.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
  593.                 if (piece == "1010") { c5.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
  594.                 if (piece == "1011") { c5.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
  595.                 if (piece == "1100") { c5.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
  596.             }
  597.  
  598.             if (xtile == "d5")
  599.             {
  600.                 if (piece == "0000") { d5.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
  601.                 if (piece == "0001") { d5.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
  602.                 if (piece == "0010") { d5.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
  603.                 if (piece == "0011") { d5.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
  604.                 if (piece == "0100") { d5.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
  605.                 if (piece == "0101") { d5.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
  606.                 if (piece == "0110") { d5.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
  607.                 if (piece == "0111") { d5.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
  608.                 if (piece == "1000") { d5.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
  609.                 if (piece == "1001") { d5.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
  610.                 if (piece == "1010") { d5.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
  611.                 if (piece == "1011") { d5.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
  612.                 if (piece == "1100") { d5.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
  613.             }
  614.  
  615.             if (xtile == "e5")
  616.             {
  617.                 if (piece == "0000") { e5.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
  618.                 if (piece == "0001") { e5.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
  619.                 if (piece == "0010") { e5.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
  620.                 if (piece == "0011") { e5.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
  621.                 if (piece == "0100") { e5.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
  622.                 if (piece == "0101") { e5.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
  623.                 if (piece == "0110") { e5.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
  624.                 if (piece == "0111") { e5.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
  625.                 if (piece == "1000") { e5.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
  626.                 if (piece == "1001") { e5.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
  627.                 if (piece == "1010") { e5.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
  628.                 if (piece == "1011") { e5.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
  629.                 if (piece == "1100") { e5.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
  630.             }
  631.  
  632.             if (xtile == "f5")
  633.             {
  634.                 if (piece == "0000") { f5.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
  635.                 if (piece == "0001") { f5.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
  636.                 if (piece == "0010") { f5.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
  637.                 if (piece == "0011") { f5.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
  638.                 if (piece == "0100") { f5.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
  639.                 if (piece == "0101") { f5.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
  640.                 if (piece == "0110") { f5.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
  641.                 if (piece == "0111") { f5.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
  642.                 if (piece == "1000") { f5.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
  643.                 if (piece == "1001") { f5.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
  644.                 if (piece == "1010") { f5.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
  645.                 if (piece == "1011") { f5.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
  646.                 if (piece == "1100") { f5.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
  647.             }
  648.  
  649.             if (xtile == "g5")
  650.             {
  651.                 if (piece == "0000") { g5.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
  652.                 if (piece == "0001") { g5.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
  653.                 if (piece == "0010") { g5.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
  654.                 if (piece == "0011") { g5.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
  655.                 if (piece == "0100") { g5.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
  656.                 if (piece == "0101") { g5.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
  657.                 if (piece == "0110") { g5.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
  658.                 if (piece == "0111") { g5.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
  659.                 if (piece == "1000") { g5.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
  660.                 if (piece == "1001") { g5.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
  661.                 if (piece == "1010") { g5.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
  662.                 if (piece == "1011") { g5.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
  663.                 if (piece == "1100") { g5.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
  664.             }
  665.  
  666.             if (xtile == "h5")
  667.             {
  668.                 if (piece == "0000") { h5.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
  669.                 if (piece == "0001") { h5.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
  670.                 if (piece == "0010") { h5.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
  671.                 if (piece == "0011") { h5.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
  672.                 if (piece == "0100") { h5.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
  673.                 if (piece == "0101") { h5.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
  674.                 if (piece == "0110") { h5.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
  675.                 if (piece == "0111") { h5.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
  676.                 if (piece == "1000") { h5.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
  677.                 if (piece == "1001") { h5.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
  678.                 if (piece == "1010") { h5.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
  679.                 if (piece == "1011") { h5.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
  680.                 if (piece == "1100") { h5.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
  681.             }
  682.  
  683.             if (xtile == "a6")
  684.             {
  685.                 if (piece == "0000") { a6.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
  686.                 if (piece == "0001") { a6.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
  687.                 if (piece == "0010") { a6.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
  688.                 if (piece == "0011") { a6.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
  689.                 if (piece == "0100") { a6.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
  690.                 if (piece == "0101") { a6.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
  691.                 if (piece == "0110") { a6.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
  692.                 if (piece == "0111") { a6.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
  693.                 if (piece == "1000") { a6.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
  694.                 if (piece == "1001") { a6.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
  695.                 if (piece == "1010") { a6.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
  696.                 if (piece == "1011") { a6.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
  697.                 if (piece == "1100") { a6.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
  698.             }
  699.  
  700.             if (xtile == "b6")
  701.             {
  702.                 if (piece == "0000") { b6.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
  703.                 if (piece == "0001") { b6.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
  704.                 if (piece == "0010") { b6.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
  705.                 if (piece == "0011") { b6.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
  706.                 if (piece == "0100") { b6.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
  707.                 if (piece == "0101") { b6.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
  708.                 if (piece == "0110") { b6.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
  709.                 if (piece == "0111") { b6.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
  710.                 if (piece == "1000") { b6.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
  711.                 if (piece == "1001") { b6.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
  712.                 if (piece == "1010") { b6.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
  713.                 if (piece == "1011") { b6.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
  714.                 if (piece == "1100") { b6.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
  715.             }
  716.  
  717.             if (xtile == "c6")
  718.             {
  719.                 if (piece == "0000") { c6.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
  720.                 if (piece == "0001") { c6.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
  721.                 if (piece == "0010") { c6.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
  722.                 if (piece == "0011") { c6.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
  723.                 if (piece == "0100") { c6.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
  724.                 if (piece == "0101") { c6.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
  725.                 if (piece == "0110") { c6.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
  726.                 if (piece == "0111") { c6.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
  727.                 if (piece == "1000") { c6.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
  728.                 if (piece == "1001") { c6.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
  729.                 if (piece == "1010") { c6.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
  730.                 if (piece == "1011") { c6.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
  731.                 if (piece == "1100") { c6.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
  732.             }
  733.  
  734.             if (xtile == "d6")
  735.             {
  736.                 if (piece == "0000") { d6.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
  737.                 if (piece == "0001") { d6.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
  738.                 if (piece == "0010") { d6.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
  739.                 if (piece == "0011") { d6.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
  740.                 if (piece == "0100") { d6.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
  741.                 if (piece == "0101") { d6.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
  742.                 if (piece == "0110") { d6.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
  743.                 if (piece == "0111") { d6.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
  744.                 if (piece == "1000") { d6.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
  745.                 if (piece == "1001") { d6.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
  746.                 if (piece == "1010") { d6.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
  747.                 if (piece == "1011") { d6.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
  748.                 if (piece == "1100") { d6.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
  749.             }
  750.  
  751.             if (xtile == "e6")
  752.             {
  753.                 if (piece == "0000") { e6.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
  754.                 if (piece == "0001") { e6.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
  755.                 if (piece == "0010") { e6.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
  756.                 if (piece == "0011") { e6.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
  757.                 if (piece == "0100") { e6.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
  758.                 if (piece == "0101") { e6.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
  759.                 if (piece == "0110") { e6.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
  760.                 if (piece == "0111") { e6.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
  761.                 if (piece == "1000") { e6.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
  762.                 if (piece == "1001") { e6.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
  763.                 if (piece == "1010") { e6.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
  764.                 if (piece == "1011") { e6.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
  765.                 if (piece == "1100") { e6.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
  766.             }
  767.  
  768.             if (xtile == "f6")
  769.             {
  770.                 if (piece == "0000") { f6.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
  771.                 if (piece == "0001") { f6.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
  772.                 if (piece == "0010") { f6.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
  773.                 if (piece == "0011") { f6.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
  774.                 if (piece == "0100") { f6.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
  775.                 if (piece == "0101") { f6.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
  776.                 if (piece == "0110") { f6.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
  777.                 if (piece == "0111") { f6.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
  778.                 if (piece == "1000") { f6.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
  779.                 if (piece == "1001") { f6.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
  780.                 if (piece == "1010") { f6.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
  781.                 if (piece == "1011") { f6.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
  782.                 if (piece == "1100") { f6.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
  783.             }
  784.  
  785.             if (xtile == "g6")
  786.             {
  787.                 if (piece == "0000") { g6.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
  788.                 if (piece == "0001") { g6.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
  789.                 if (piece == "0010") { g6.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
  790.                 if (piece == "0011") { g6.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
  791.                 if (piece == "0100") { g6.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
  792.                 if (piece == "0101") { g6.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
  793.                 if (piece == "0110") { g6.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
  794.                 if (piece == "0111") { g6.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
  795.                 if (piece == "1000") { g6.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
  796.                 if (piece == "1001") { g6.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
  797.                 if (piece == "1010") { g6.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
  798.                 if (piece == "1011") { g6.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
  799.                 if (piece == "1100") { g6.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
  800.             }
  801.  
  802.             if (xtile == "h6")
  803.             {
  804.                 if (piece == "0000") { h6.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
  805.                 if (piece == "0001") { h6.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
  806.                 if (piece == "0010") { h6.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
  807.                 if (piece == "0011") { h6.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
  808.                 if (piece == "0100") { h6.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
  809.                 if (piece == "0101") { h6.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
  810.                 if (piece == "0110") { h6.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
  811.                 if (piece == "0111") { h6.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
  812.                 if (piece == "1000") { h6.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
  813.                 if (piece == "1001") { h6.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
  814.                 if (piece == "1010") { h6.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
  815.                 if (piece == "1011") { h6.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
  816.                 if (piece == "1100") { h6.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
  817.             }
  818.  
  819.             if (xtile == "a7")
  820.             {
  821.                 if (piece == "0000") { a7.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
  822.                 if (piece == "0001") { a7.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
  823.                 if (piece == "0010") { a7.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
  824.                 if (piece == "0011") { a7.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
  825.                 if (piece == "0100") { a7.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
  826.                 if (piece == "0101") { a7.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
  827.                 if (piece == "0110") { a7.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
  828.                 if (piece == "0111") { a7.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
  829.                 if (piece == "1000") { a7.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
  830.                 if (piece == "1001") { a7.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
  831.                 if (piece == "1010") { a7.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
  832.                 if (piece == "1011") { a7.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
  833.                 if (piece == "1100") { a7.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
  834.             }
  835.  
  836.             if (xtile == "b7")
  837.             {
  838.                 if (piece == "0000") { b7.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
  839.                 if (piece == "0001") { b7.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
  840.                 if (piece == "0010") { b7.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
  841.                 if (piece == "0011") { b7.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
  842.                 if (piece == "0100") { b7.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
  843.                 if (piece == "0101") { b7.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
  844.                 if (piece == "0110") { b7.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
  845.                 if (piece == "0111") { b7.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
  846.                 if (piece == "1000") { b7.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
  847.                 if (piece == "1001") { b7.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
  848.                 if (piece == "1010") { b7.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
  849.                 if (piece == "1011") { b7.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
  850.                 if (piece == "1100") { b7.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
  851.             }
  852.  
  853.             if (xtile == "c7")
  854.             {
  855.                 if (piece == "0000") { c7.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
  856.                 if (piece == "0001") { c7.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
  857.                 if (piece == "0010") { c7.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
  858.                 if (piece == "0011") { c7.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
  859.                 if (piece == "0100") { c7.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
  860.                 if (piece == "0101") { c7.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
  861.                 if (piece == "0110") { c7.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
  862.                 if (piece == "0111") { c7.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
  863.                 if (piece == "1000") { c7.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
  864.                 if (piece == "1001") { c7.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
  865.                 if (piece == "1010") { c7.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
  866.                 if (piece == "1011") { c7.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
  867.                 if (piece == "1100") { c7.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
  868.             }
  869.  
  870.             if (xtile == "d7")
  871.             {
  872.                 if (piece == "0000") { d7.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
  873.                 if (piece == "0001") { d7.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
  874.                 if (piece == "0010") { d7.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
  875.                 if (piece == "0011") { d7.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
  876.                 if (piece == "0100") { d7.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
  877.                 if (piece == "0101") { d7.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
  878.                 if (piece == "0110") { d7.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
  879.                 if (piece == "0111") { d7.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
  880.                 if (piece == "1000") { d7.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
  881.                 if (piece == "1001") { d7.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
  882.                 if (piece == "1010") { d7.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
  883.                 if (piece == "1011") { d7.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
  884.                 if (piece == "1100") { d7.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
  885.             }
  886.  
  887.             if (xtile == "e7")
  888.             {
  889.                 if (piece == "0000") { e7.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
  890.                 if (piece == "0001") { e7.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
  891.                 if (piece == "0010") { e7.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
  892.                 if (piece == "0011") { e7.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
  893.                 if (piece == "0100") { e7.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
  894.                 if (piece == "0101") { e7.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
  895.                 if (piece == "0110") { e7.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
  896.                 if (piece == "0111") { e7.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
  897.                 if (piece == "1000") { e7.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
  898.                 if (piece == "1001") { e7.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
  899.                 if (piece == "1010") { e7.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
  900.                 if (piece == "1011") { e7.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
  901.                 if (piece == "1100") { e7.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
  902.             }
  903.  
  904.             if (xtile == "f7")
  905.             {
  906.                 if (piece == "0000") { f7.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
  907.                 if (piece == "0001") { f7.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
  908.                 if (piece == "0010") { f7.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
  909.                 if (piece == "0011") { f7.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
  910.                 if (piece == "0100") { f7.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
  911.                 if (piece == "0101") { f7.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
  912.                 if (piece == "0110") { f7.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
  913.                 if (piece == "0111") { f7.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
  914.                 if (piece == "1000") { f7.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
  915.                 if (piece == "1001") { f7.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
  916.                 if (piece == "1010") { f7.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
  917.                 if (piece == "1011") { f7.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
  918.                 if (piece == "1100") { f7.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
  919.             }
  920.  
  921.             if (xtile == "g7")
  922.             {
  923.                 if (piece == "0000") { g7.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
  924.                 if (piece == "0001") { g7.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
  925.                 if (piece == "0010") { g7.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
  926.                 if (piece == "0011") { g7.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
  927.                 if (piece == "0100") { g7.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
  928.                 if (piece == "0101") { g7.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
  929.                 if (piece == "0110") { g7.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
  930.                 if (piece == "0111") { g7.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
  931.                 if (piece == "1000") { g7.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
  932.                 if (piece == "1001") { g7.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
  933.                 if (piece == "1010") { g7.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
  934.                 if (piece == "1011") { g7.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
  935.                 if (piece == "1100") { g7.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
  936.             }
  937.  
  938.             if (xtile == "h7")
  939.             {
  940.                 if (piece == "0000") { h7.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
  941.                 if (piece == "0001") { h7.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
  942.                 if (piece == "0010") { h7.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
  943.                 if (piece == "0011") { h7.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
  944.                 if (piece == "0100") { h7.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
  945.                 if (piece == "0101") { h7.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
  946.                 if (piece == "0110") { h7.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
  947.                 if (piece == "0111") { h7.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
  948.                 if (piece == "1000") { h7.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
  949.                 if (piece == "1001") { h7.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
  950.                 if (piece == "1010") { h7.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
  951.                 if (piece == "1011") { h7.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
  952.                 if (piece == "1100") { h7.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
  953.             }
  954.  
  955.             if (xtile == "a8")
  956.             {
  957.                 if (piece == "0000") { a8.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
  958.                 if (piece == "0001") { a8.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
  959.                 if (piece == "0010") { a8.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
  960.                 if (piece == "0011") { a8.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
  961.                 if (piece == "0100") { a8.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
  962.                 if (piece == "0101") { a8.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
  963.                 if (piece == "0110") { a8.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
  964.                 if (piece == "0111") { a8.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
  965.                 if (piece == "1000") { a8.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
  966.                 if (piece == "1001") { a8.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
  967.                 if (piece == "1010") { a8.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
  968.                 if (piece == "1011") { a8.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
  969.                 if (piece == "1100") { a8.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
  970.             }
  971.  
  972.             if (xtile == "b8")
  973.             {
  974.                 if (piece == "0000") { b8.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
  975.                 if (piece == "0001") { b8.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
  976.                 if (piece == "0010") { b8.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
  977.                 if (piece == "0011") { b8.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
  978.                 if (piece == "0100") { b8.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
  979.                 if (piece == "0101") { b8.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
  980.                 if (piece == "0110") { b8.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
  981.                 if (piece == "0111") { b8.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
  982.                 if (piece == "1000") { b8.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
  983.                 if (piece == "1001") { b8.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
  984.                 if (piece == "1010") { b8.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
  985.                 if (piece == "1011") { b8.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
  986.                 if (piece == "1100") { b8.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
  987.             }
  988.  
  989.             if (xtile == "c8")
  990.             {
  991.                 if (piece == "0000") { c8.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
  992.                 if (piece == "0001") { c8.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
  993.                 if (piece == "0010") { c8.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
  994.                 if (piece == "0011") { c8.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
  995.                 if (piece == "0100") { c8.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
  996.                 if (piece == "0101") { c8.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
  997.                 if (piece == "0110") { c8.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
  998.                 if (piece == "0111") { c8.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
  999.                 if (piece == "1000") { c8.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
  1000.                 if (piece == "1001") { c8.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
  1001.                 if (piece == "1010") { c8.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
  1002.                 if (piece == "1011") { c8.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
  1003.                 if (piece == "1100") { c8.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
  1004.             }
  1005.  
  1006.             if (xtile == "d8")
  1007.             {
  1008.                 if (piece == "0000") { d8.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
  1009.                 if (piece == "0001") { d8.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
  1010.                 if (piece == "0010") { d8.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
  1011.                 if (piece == "0011") { d8.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
  1012.                 if (piece == "0100") { d8.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
  1013.                 if (piece == "0101") { d8.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
  1014.                 if (piece == "0110") { d8.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
  1015.                 if (piece == "0111") { d8.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
  1016.                 if (piece == "1000") { d8.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
  1017.                 if (piece == "1001") { d8.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
  1018.                 if (piece == "1010") { d8.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
  1019.                 if (piece == "1011") { d8.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
  1020.                 if (piece == "1100") { d8.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
  1021.             }
  1022.  
  1023.             if (xtile == "e8")
  1024.             {
  1025.                 if (piece == "0000") { e8.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
  1026.                 if (piece == "0001") { e8.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
  1027.                 if (piece == "0010") { e8.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
  1028.                 if (piece == "0011") { e8.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
  1029.                 if (piece == "0100") { e8.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
  1030.                 if (piece == "0101") { e8.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
  1031.                 if (piece == "0110") { e8.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
  1032.                 if (piece == "0111") { e8.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
  1033.                 if (piece == "1000") { e8.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
  1034.                 if (piece == "1001") { e8.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
  1035.                 if (piece == "1010") { e8.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
  1036.                 if (piece == "1011") { e8.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
  1037.                 if (piece == "1100") { e8.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
  1038.             }
  1039.  
  1040.             if (xtile == "f8")
  1041.             {
  1042.                 if (piece == "0000") { f8.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
  1043.                 if (piece == "0001") { f8.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
  1044.                 if (piece == "0010") { f8.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
  1045.                 if (piece == "0011") { f8.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
  1046.                 if (piece == "0100") { f8.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
  1047.                 if (piece == "0101") { f8.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
  1048.                 if (piece == "0110") { f8.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
  1049.                 if (piece == "0111") { f8.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
  1050.                 if (piece == "1000") { f8.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
  1051.                 if (piece == "1001") { f8.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
  1052.                 if (piece == "1010") { f8.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
  1053.                 if (piece == "1011") { f8.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
  1054.                 if (piece == "1100") { f8.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
  1055.             }
  1056.  
  1057.             if (xtile == "g8")
  1058.             {
  1059.                 if (piece == "0000") { g8.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
  1060.                 if (piece == "0001") { g8.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
  1061.                 if (piece == "0010") { g8.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
  1062.                 if (piece == "0011") { g8.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
  1063.                 if (piece == "0100") { g8.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
  1064.                 if (piece == "0101") { g8.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
  1065.                 if (piece == "0110") { g8.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
  1066.                 if (piece == "0111") { g8.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
  1067.                 if (piece == "1000") { g8.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
  1068.                 if (piece == "1001") { g8.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
  1069.                 if (piece == "1010") { g8.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
  1070.                 if (piece == "1011") { g8.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
  1071.                 if (piece == "1100") { g8.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
  1072.             }
  1073.  
  1074.             if (xtile == "h8")
  1075.             {
  1076.                 if (piece == "0000") { h8.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
  1077.                 if (piece == "0001") { h8.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
  1078.                 if (piece == "0010") { h8.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
  1079.                 if (piece == "0011") { h8.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
  1080.                 if (piece == "0100") { h8.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
  1081.                 if (piece == "0101") { h8.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
  1082.                 if (piece == "0110") { h8.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
  1083.                 if (piece == "0111") { h8.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
  1084.                 if (piece == "1000") { h8.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
  1085.                 if (piece == "1001") { h8.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
  1086.                 if (piece == "1010") { h8.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
  1087.                 if (piece == "1011") { h8.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
  1088.                 if (piece == "1100") { h8.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
  1089.             }
  1090.  
  1091.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement