Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void DisplayBoardDisplayTile(string xtile, string piece)
- {
- if (xtile == "a1")
- {
- if (piece == "0000") { a1.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
- if (piece == "0001") { a1.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
- if (piece == "0010") { a1.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
- if (piece == "0011") { a1.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
- if (piece == "0100") { a1.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
- if (piece == "0101") { a1.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
- if (piece == "0110") { a1.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
- if (piece == "0111") { a1.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
- if (piece == "1000") { a1.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
- if (piece == "1001") { a1.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
- if (piece == "1010") { a1.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
- if (piece == "1011") { a1.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
- if (piece == "1100") { a1.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
- }
- if (xtile == "b1")
- {
- if (piece == "0000") { b1.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
- if (piece == "0001") { b1.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
- if (piece == "0010") { b1.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
- if (piece == "0011") { b1.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
- if (piece == "0100") { b1.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
- if (piece == "0101") { b1.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
- if (piece == "0110") { b1.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
- if (piece == "0111") { b1.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
- if (piece == "1000") { b1.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
- if (piece == "1001") { b1.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
- if (piece == "1010") { b1.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
- if (piece == "1011") { b1.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
- if (piece == "1100") { b1.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
- }
- if (xtile == "c1")
- {
- if (piece == "0000") { c1.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
- if (piece == "0001") { c1.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
- if (piece == "0010") { c1.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
- if (piece == "0011") { c1.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
- if (piece == "0100") { c1.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
- if (piece == "0101") { c1.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
- if (piece == "0110") { c1.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
- if (piece == "0111") { c1.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
- if (piece == "1000") { c1.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
- if (piece == "1001") { c1.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
- if (piece == "1010") { c1.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
- if (piece == "1011") { c1.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
- if (piece == "1100") { c1.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
- }
- if (xtile == "d1")
- {
- if (piece == "0000") { d1.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
- if (piece == "0001") { d1.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
- if (piece == "0010") { d1.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
- if (piece == "0011") { d1.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
- if (piece == "0100") { d1.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
- if (piece == "0101") { d1.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
- if (piece == "0110") { d1.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
- if (piece == "0111") { d1.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
- if (piece == "1000") { d1.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
- if (piece == "1001") { d1.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
- if (piece == "1010") { d1.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
- if (piece == "1011") { d1.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
- if (piece == "1100") { d1.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
- }
- if (xtile == "e1")
- {
- if (piece == "0000") { e1.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
- if (piece == "0001") { e1.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
- if (piece == "0010") { e1.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
- if (piece == "0011") { e1.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
- if (piece == "0100") { e1.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
- if (piece == "0101") { e1.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
- if (piece == "0110") { e1.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
- if (piece == "0111") { e1.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
- if (piece == "1000") { e1.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
- if (piece == "1001") { e1.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
- if (piece == "1010") { e1.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
- if (piece == "1011") { e1.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
- if (piece == "1100") { e1.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
- }
- if (xtile == "f1")
- {
- if (piece == "0000") { f1.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
- if (piece == "0001") { f1.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
- if (piece == "0010") { f1.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
- if (piece == "0011") { f1.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
- if (piece == "0100") { f1.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
- if (piece == "0101") { f1.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
- if (piece == "0110") { f1.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
- if (piece == "0111") { f1.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
- if (piece == "1000") { f1.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
- if (piece == "1001") { f1.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
- if (piece == "1010") { f1.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
- if (piece == "1011") { f1.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
- if (piece == "1100") { f1.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
- }
- if (xtile == "g1")
- {
- if (piece == "0000") { g1.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
- if (piece == "0001") { g1.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
- if (piece == "0010") { g1.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
- if (piece == "0011") { g1.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
- if (piece == "0100") { g1.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
- if (piece == "0101") { g1.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
- if (piece == "0110") { g1.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
- if (piece == "0111") { g1.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
- if (piece == "1000") { g1.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
- if (piece == "1001") { g1.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
- if (piece == "1010") { g1.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
- if (piece == "1011") { g1.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
- if (piece == "1100") { g1.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
- }
- if (xtile == "h1")
- {
- if (piece == "0000") { h1.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
- if (piece == "0001") { h1.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
- if (piece == "0010") { h1.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
- if (piece == "0011") { h1.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
- if (piece == "0100") { h1.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
- if (piece == "0101") { h1.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
- if (piece == "0110") { h1.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
- if (piece == "0111") { h1.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
- if (piece == "1000") { h1.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
- if (piece == "1001") { h1.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
- if (piece == "1010") { h1.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
- if (piece == "1011") { h1.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
- if (piece == "1100") { h1.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
- }
- if (xtile == "a2")
- {
- if (piece == "0000") { a2.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
- if (piece == "0001") { a2.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
- if (piece == "0010") { a2.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
- if (piece == "0011") { a2.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
- if (piece == "0100") { a2.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
- if (piece == "0101") { a2.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
- if (piece == "0110") { a2.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
- if (piece == "0111") { a2.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
- if (piece == "1000") { a2.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
- if (piece == "1001") { a2.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
- if (piece == "1010") { a2.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
- if (piece == "1011") { a2.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
- if (piece == "1100") { a2.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
- }
- if (xtile == "b2")
- {
- if (piece == "0000") { b2.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
- if (piece == "0001") { b2.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
- if (piece == "0010") { b2.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
- if (piece == "0011") { b2.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
- if (piece == "0100") { b2.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
- if (piece == "0101") { b2.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
- if (piece == "0110") { b2.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
- if (piece == "0111") { b2.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
- if (piece == "1000") { b2.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
- if (piece == "1001") { b2.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
- if (piece == "1010") { b2.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
- if (piece == "1011") { b2.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
- if (piece == "1100") { b2.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
- }
- if (xtile == "c2")
- {
- if (piece == "0000") { c2.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
- if (piece == "0001") { c2.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
- if (piece == "0010") { c2.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
- if (piece == "0011") { c2.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
- if (piece == "0100") { c2.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
- if (piece == "0101") { c2.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
- if (piece == "0110") { c2.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
- if (piece == "0111") { c2.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
- if (piece == "1000") { c2.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
- if (piece == "1001") { c2.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
- if (piece == "1010") { c2.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
- if (piece == "1011") { c2.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
- if (piece == "1100") { c2.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
- }
- if (xtile == "d2")
- {
- if (piece == "0000") { d2.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
- if (piece == "0001") { d2.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
- if (piece == "0010") { d2.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
- if (piece == "0011") { d2.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
- if (piece == "0100") { d2.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
- if (piece == "0101") { d2.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
- if (piece == "0110") { d2.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
- if (piece == "0111") { d2.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
- if (piece == "1000") { d2.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
- if (piece == "1001") { d2.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
- if (piece == "1010") { d2.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
- if (piece == "1011") { d2.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
- if (piece == "1100") { d2.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
- }
- if (xtile == "e2")
- {
- if (piece == "0000") { e2.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
- if (piece == "0001") { e2.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
- if (piece == "0010") { e2.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
- if (piece == "0011") { e2.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
- if (piece == "0100") { e2.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
- if (piece == "0101") { e2.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
- if (piece == "0110") { e2.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
- if (piece == "0111") { e2.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
- if (piece == "1000") { e2.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
- if (piece == "1001") { e2.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
- if (piece == "1010") { e2.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
- if (piece == "1011") { e2.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
- if (piece == "1100") { e2.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
- }
- if (xtile == "f2")
- {
- if (piece == "0000") { f2.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
- if (piece == "0001") { f2.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
- if (piece == "0010") { f2.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
- if (piece == "0011") { f2.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
- if (piece == "0100") { f2.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
- if (piece == "0101") { f2.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
- if (piece == "0110") { f2.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
- if (piece == "0111") { f2.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
- if (piece == "1000") { f2.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
- if (piece == "1001") { f2.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
- if (piece == "1010") { f2.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
- if (piece == "1011") { f2.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
- if (piece == "1100") { f2.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
- }
- if (xtile == "g2")
- {
- if (piece == "0000") { g2.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
- if (piece == "0001") { g2.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
- if (piece == "0010") { g2.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
- if (piece == "0011") { g2.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
- if (piece == "0100") { g2.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
- if (piece == "0101") { g2.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
- if (piece == "0110") { g2.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
- if (piece == "0111") { g2.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
- if (piece == "1000") { g2.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
- if (piece == "1001") { g2.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
- if (piece == "1010") { g2.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
- if (piece == "1011") { g2.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
- if (piece == "1100") { g2.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
- }
- if (xtile == "h2")
- {
- if (piece == "0000") { h2.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
- if (piece == "0001") { h2.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
- if (piece == "0010") { h2.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
- if (piece == "0011") { h2.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
- if (piece == "0100") { h2.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
- if (piece == "0101") { h2.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
- if (piece == "0110") { h2.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
- if (piece == "0111") { h2.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
- if (piece == "1000") { h2.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
- if (piece == "1001") { h2.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
- if (piece == "1010") { h2.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
- if (piece == "1011") { h2.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
- if (piece == "1100") { h2.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
- }
- if (xtile == "a3")
- {
- if (piece == "0000") { a3.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
- if (piece == "0001") { a3.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
- if (piece == "0010") { a3.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
- if (piece == "0011") { a3.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
- if (piece == "0100") { a3.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
- if (piece == "0101") { a3.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
- if (piece == "0110") { a3.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
- if (piece == "0111") { a3.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
- if (piece == "1000") { a3.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
- if (piece == "1001") { a3.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
- if (piece == "1010") { a3.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
- if (piece == "1011") { a3.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
- if (piece == "1100") { a3.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
- }
- if (xtile == "b3")
- {
- if (piece == "0000") { b3.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
- if (piece == "0001") { b3.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
- if (piece == "0010") { b3.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
- if (piece == "0011") { b3.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
- if (piece == "0100") { b3.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
- if (piece == "0101") { b3.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
- if (piece == "0110") { b3.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
- if (piece == "0111") { b3.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
- if (piece == "1000") { b3.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
- if (piece == "1001") { b3.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
- if (piece == "1010") { b3.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
- if (piece == "1011") { b3.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
- if (piece == "1100") { b3.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
- }
- if (xtile == "c3")
- {
- if (piece == "0000") { c3.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
- if (piece == "0001") { c3.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
- if (piece == "0010") { c3.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
- if (piece == "0011") { c3.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
- if (piece == "0100") { c3.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
- if (piece == "0101") { c3.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
- if (piece == "0110") { c3.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
- if (piece == "0111") { c3.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
- if (piece == "1000") { c3.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
- if (piece == "1001") { c3.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
- if (piece == "1010") { c3.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
- if (piece == "1011") { c3.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
- if (piece == "1100") { c3.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
- }
- if (xtile == "d3")
- {
- if (piece == "0000") { d3.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
- if (piece == "0001") { d3.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
- if (piece == "0010") { d3.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
- if (piece == "0011") { d3.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
- if (piece == "0100") { d3.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
- if (piece == "0101") { d3.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
- if (piece == "0110") { d3.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
- if (piece == "0111") { d3.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
- if (piece == "1000") { d3.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
- if (piece == "1001") { d3.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
- if (piece == "1010") { d3.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
- if (piece == "1011") { d3.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
- if (piece == "1100") { d3.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
- }
- if (xtile == "e3")
- {
- if (piece == "0000") { e3.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
- if (piece == "0001") { e3.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
- if (piece == "0010") { e3.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
- if (piece == "0011") { e3.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
- if (piece == "0100") { e3.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
- if (piece == "0101") { e3.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
- if (piece == "0110") { e3.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
- if (piece == "0111") { e3.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
- if (piece == "1000") { e3.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
- if (piece == "1001") { e3.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
- if (piece == "1010") { e3.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
- if (piece == "1011") { e3.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
- if (piece == "1100") { e3.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
- }
- if (xtile == "f3")
- {
- if (piece == "0000") { f3.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
- if (piece == "0001") { f3.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
- if (piece == "0010") { f3.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
- if (piece == "0011") { f3.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
- if (piece == "0100") { f3.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
- if (piece == "0101") { f3.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
- if (piece == "0110") { f3.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
- if (piece == "0111") { f3.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
- if (piece == "1000") { f3.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
- if (piece == "1001") { f3.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
- if (piece == "1010") { f3.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
- if (piece == "1011") { f3.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
- if (piece == "1100") { f3.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
- }
- if (xtile == "g3")
- {
- if (piece == "0000") { g3.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
- if (piece == "0001") { g3.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
- if (piece == "0010") { g3.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
- if (piece == "0011") { g3.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
- if (piece == "0100") { g3.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
- if (piece == "0101") { g3.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
- if (piece == "0110") { g3.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
- if (piece == "0111") { g3.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
- if (piece == "1000") { g3.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
- if (piece == "1001") { g3.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
- if (piece == "1010") { g3.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
- if (piece == "1011") { g3.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
- if (piece == "1100") { g3.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
- }
- if (xtile == "h3")
- {
- if (piece == "0000") { h3.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
- if (piece == "0001") { h3.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
- if (piece == "0010") { h3.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
- if (piece == "0011") { h3.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
- if (piece == "0100") { h3.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
- if (piece == "0101") { h3.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
- if (piece == "0110") { h3.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
- if (piece == "0111") { h3.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
- if (piece == "1000") { h3.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
- if (piece == "1001") { h3.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
- if (piece == "1010") { h3.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
- if (piece == "1011") { h3.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
- if (piece == "1100") { h3.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
- }
- if (xtile == "a4")
- {
- if (piece == "0000") { a4.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
- if (piece == "0001") { a4.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
- if (piece == "0010") { a4.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
- if (piece == "0011") { a4.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
- if (piece == "0100") { a4.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
- if (piece == "0101") { a4.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
- if (piece == "0110") { a4.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
- if (piece == "0111") { a4.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
- if (piece == "1000") { a4.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
- if (piece == "1001") { a4.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
- if (piece == "1010") { a4.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
- if (piece == "1011") { a4.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
- if (piece == "1100") { a4.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
- }
- if (xtile == "b4")
- {
- if (piece == "0000") { b4.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
- if (piece == "0001") { b4.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
- if (piece == "0010") { b4.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
- if (piece == "0011") { b4.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
- if (piece == "0100") { b4.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
- if (piece == "0101") { b4.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
- if (piece == "0110") { b4.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
- if (piece == "0111") { b4.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
- if (piece == "1000") { b4.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
- if (piece == "1001") { b4.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
- if (piece == "1010") { b4.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
- if (piece == "1011") { b4.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
- if (piece == "1100") { b4.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
- }
- if (xtile == "c4")
- {
- if (piece == "0000") { c4.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
- if (piece == "0001") { c4.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
- if (piece == "0010") { c4.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
- if (piece == "0011") { c4.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
- if (piece == "0100") { c4.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
- if (piece == "0101") { c4.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
- if (piece == "0110") { c4.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
- if (piece == "0111") { c4.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
- if (piece == "1000") { c4.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
- if (piece == "1001") { c4.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
- if (piece == "1010") { c4.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
- if (piece == "1011") { c4.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
- if (piece == "1100") { c4.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
- }
- if (xtile == "d4")
- {
- if (piece == "0000") { d4.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
- if (piece == "0001") { d4.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
- if (piece == "0010") { d4.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
- if (piece == "0011") { d4.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
- if (piece == "0100") { d4.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
- if (piece == "0101") { d4.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
- if (piece == "0110") { d4.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
- if (piece == "0111") { d4.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
- if (piece == "1000") { d4.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
- if (piece == "1001") { d4.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
- if (piece == "1010") { d4.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
- if (piece == "1011") { d4.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
- if (piece == "1100") { d4.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
- }
- if (xtile == "e4")
- {
- if (piece == "0000") { e4.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
- if (piece == "0001") { e4.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
- if (piece == "0010") { e4.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
- if (piece == "0011") { e4.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
- if (piece == "0100") { e4.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
- if (piece == "0101") { e4.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
- if (piece == "0110") { e4.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
- if (piece == "0111") { e4.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
- if (piece == "1000") { e4.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
- if (piece == "1001") { e4.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
- if (piece == "1010") { e4.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
- if (piece == "1011") { e4.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
- if (piece == "1100") { e4.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
- }
- if (xtile == "f4")
- {
- if (piece == "0000") { f4.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
- if (piece == "0001") { f4.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
- if (piece == "0010") { f4.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
- if (piece == "0011") { f4.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
- if (piece == "0100") { f4.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
- if (piece == "0101") { f4.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
- if (piece == "0110") { f4.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
- if (piece == "0111") { f4.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
- if (piece == "1000") { f4.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
- if (piece == "1001") { f4.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
- if (piece == "1010") { f4.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
- if (piece == "1011") { f4.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
- if (piece == "1100") { f4.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
- }
- if (xtile == "g4")
- {
- if (piece == "0000") { g4.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
- if (piece == "0001") { g4.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
- if (piece == "0010") { g4.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
- if (piece == "0011") { g4.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
- if (piece == "0100") { g4.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
- if (piece == "0101") { g4.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
- if (piece == "0110") { g4.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
- if (piece == "0111") { g4.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
- if (piece == "1000") { g4.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
- if (piece == "1001") { g4.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
- if (piece == "1010") { g4.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
- if (piece == "1011") { g4.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
- if (piece == "1100") { g4.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
- }
- if (xtile == "h4")
- {
- if (piece == "0000") { h4.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
- if (piece == "0001") { h4.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
- if (piece == "0010") { h4.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
- if (piece == "0011") { h4.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
- if (piece == "0100") { h4.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
- if (piece == "0101") { h4.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
- if (piece == "0110") { h4.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
- if (piece == "0111") { h4.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
- if (piece == "1000") { h4.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
- if (piece == "1001") { h4.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
- if (piece == "1010") { h4.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
- if (piece == "1011") { h4.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
- if (piece == "1100") { h4.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
- }
- if (xtile == "a5")
- {
- if (piece == "0000") { a5.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
- if (piece == "0001") { a5.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
- if (piece == "0010") { a5.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
- if (piece == "0011") { a5.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
- if (piece == "0100") { a5.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
- if (piece == "0101") { a5.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
- if (piece == "0110") { a5.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
- if (piece == "0111") { a5.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
- if (piece == "1000") { a5.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
- if (piece == "1001") { a5.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
- if (piece == "1010") { a5.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
- if (piece == "1011") { a5.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
- if (piece == "1100") { a5.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
- }
- if (xtile == "b5")
- {
- if (piece == "0000") { b5.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
- if (piece == "0001") { b5.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
- if (piece == "0010") { b5.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
- if (piece == "0011") { b5.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
- if (piece == "0100") { b5.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
- if (piece == "0101") { b5.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
- if (piece == "0110") { b5.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
- if (piece == "0111") { b5.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
- if (piece == "1000") { b5.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
- if (piece == "1001") { b5.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
- if (piece == "1010") { b5.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
- if (piece == "1011") { b5.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
- if (piece == "1100") { b5.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
- }
- if (xtile == "c5")
- {
- if (piece == "0000") { c5.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
- if (piece == "0001") { c5.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
- if (piece == "0010") { c5.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
- if (piece == "0011") { c5.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
- if (piece == "0100") { c5.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
- if (piece == "0101") { c5.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
- if (piece == "0110") { c5.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
- if (piece == "0111") { c5.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
- if (piece == "1000") { c5.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
- if (piece == "1001") { c5.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
- if (piece == "1010") { c5.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
- if (piece == "1011") { c5.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
- if (piece == "1100") { c5.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
- }
- if (xtile == "d5")
- {
- if (piece == "0000") { d5.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
- if (piece == "0001") { d5.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
- if (piece == "0010") { d5.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
- if (piece == "0011") { d5.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
- if (piece == "0100") { d5.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
- if (piece == "0101") { d5.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
- if (piece == "0110") { d5.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
- if (piece == "0111") { d5.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
- if (piece == "1000") { d5.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
- if (piece == "1001") { d5.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
- if (piece == "1010") { d5.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
- if (piece == "1011") { d5.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
- if (piece == "1100") { d5.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
- }
- if (xtile == "e5")
- {
- if (piece == "0000") { e5.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
- if (piece == "0001") { e5.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
- if (piece == "0010") { e5.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
- if (piece == "0011") { e5.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
- if (piece == "0100") { e5.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
- if (piece == "0101") { e5.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
- if (piece == "0110") { e5.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
- if (piece == "0111") { e5.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
- if (piece == "1000") { e5.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
- if (piece == "1001") { e5.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
- if (piece == "1010") { e5.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
- if (piece == "1011") { e5.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
- if (piece == "1100") { e5.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
- }
- if (xtile == "f5")
- {
- if (piece == "0000") { f5.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
- if (piece == "0001") { f5.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
- if (piece == "0010") { f5.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
- if (piece == "0011") { f5.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
- if (piece == "0100") { f5.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
- if (piece == "0101") { f5.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
- if (piece == "0110") { f5.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
- if (piece == "0111") { f5.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
- if (piece == "1000") { f5.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
- if (piece == "1001") { f5.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
- if (piece == "1010") { f5.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
- if (piece == "1011") { f5.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
- if (piece == "1100") { f5.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
- }
- if (xtile == "g5")
- {
- if (piece == "0000") { g5.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
- if (piece == "0001") { g5.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
- if (piece == "0010") { g5.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
- if (piece == "0011") { g5.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
- if (piece == "0100") { g5.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
- if (piece == "0101") { g5.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
- if (piece == "0110") { g5.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
- if (piece == "0111") { g5.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
- if (piece == "1000") { g5.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
- if (piece == "1001") { g5.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
- if (piece == "1010") { g5.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
- if (piece == "1011") { g5.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
- if (piece == "1100") { g5.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
- }
- if (xtile == "h5")
- {
- if (piece == "0000") { h5.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
- if (piece == "0001") { h5.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
- if (piece == "0010") { h5.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
- if (piece == "0011") { h5.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
- if (piece == "0100") { h5.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
- if (piece == "0101") { h5.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
- if (piece == "0110") { h5.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
- if (piece == "0111") { h5.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
- if (piece == "1000") { h5.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
- if (piece == "1001") { h5.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
- if (piece == "1010") { h5.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
- if (piece == "1011") { h5.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
- if (piece == "1100") { h5.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
- }
- if (xtile == "a6")
- {
- if (piece == "0000") { a6.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
- if (piece == "0001") { a6.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
- if (piece == "0010") { a6.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
- if (piece == "0011") { a6.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
- if (piece == "0100") { a6.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
- if (piece == "0101") { a6.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
- if (piece == "0110") { a6.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
- if (piece == "0111") { a6.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
- if (piece == "1000") { a6.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
- if (piece == "1001") { a6.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
- if (piece == "1010") { a6.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
- if (piece == "1011") { a6.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
- if (piece == "1100") { a6.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
- }
- if (xtile == "b6")
- {
- if (piece == "0000") { b6.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
- if (piece == "0001") { b6.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
- if (piece == "0010") { b6.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
- if (piece == "0011") { b6.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
- if (piece == "0100") { b6.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
- if (piece == "0101") { b6.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
- if (piece == "0110") { b6.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
- if (piece == "0111") { b6.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
- if (piece == "1000") { b6.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
- if (piece == "1001") { b6.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
- if (piece == "1010") { b6.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
- if (piece == "1011") { b6.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
- if (piece == "1100") { b6.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
- }
- if (xtile == "c6")
- {
- if (piece == "0000") { c6.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
- if (piece == "0001") { c6.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
- if (piece == "0010") { c6.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
- if (piece == "0011") { c6.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
- if (piece == "0100") { c6.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
- if (piece == "0101") { c6.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
- if (piece == "0110") { c6.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
- if (piece == "0111") { c6.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
- if (piece == "1000") { c6.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
- if (piece == "1001") { c6.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
- if (piece == "1010") { c6.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
- if (piece == "1011") { c6.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
- if (piece == "1100") { c6.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
- }
- if (xtile == "d6")
- {
- if (piece == "0000") { d6.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
- if (piece == "0001") { d6.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
- if (piece == "0010") { d6.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
- if (piece == "0011") { d6.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
- if (piece == "0100") { d6.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
- if (piece == "0101") { d6.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
- if (piece == "0110") { d6.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
- if (piece == "0111") { d6.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
- if (piece == "1000") { d6.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
- if (piece == "1001") { d6.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
- if (piece == "1010") { d6.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
- if (piece == "1011") { d6.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
- if (piece == "1100") { d6.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
- }
- if (xtile == "e6")
- {
- if (piece == "0000") { e6.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
- if (piece == "0001") { e6.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
- if (piece == "0010") { e6.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
- if (piece == "0011") { e6.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
- if (piece == "0100") { e6.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
- if (piece == "0101") { e6.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
- if (piece == "0110") { e6.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
- if (piece == "0111") { e6.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
- if (piece == "1000") { e6.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
- if (piece == "1001") { e6.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
- if (piece == "1010") { e6.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
- if (piece == "1011") { e6.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
- if (piece == "1100") { e6.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
- }
- if (xtile == "f6")
- {
- if (piece == "0000") { f6.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
- if (piece == "0001") { f6.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
- if (piece == "0010") { f6.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
- if (piece == "0011") { f6.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
- if (piece == "0100") { f6.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
- if (piece == "0101") { f6.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
- if (piece == "0110") { f6.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
- if (piece == "0111") { f6.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
- if (piece == "1000") { f6.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
- if (piece == "1001") { f6.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
- if (piece == "1010") { f6.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
- if (piece == "1011") { f6.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
- if (piece == "1100") { f6.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
- }
- if (xtile == "g6")
- {
- if (piece == "0000") { g6.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
- if (piece == "0001") { g6.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
- if (piece == "0010") { g6.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
- if (piece == "0011") { g6.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
- if (piece == "0100") { g6.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
- if (piece == "0101") { g6.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
- if (piece == "0110") { g6.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
- if (piece == "0111") { g6.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
- if (piece == "1000") { g6.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
- if (piece == "1001") { g6.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
- if (piece == "1010") { g6.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
- if (piece == "1011") { g6.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
- if (piece == "1100") { g6.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
- }
- if (xtile == "h6")
- {
- if (piece == "0000") { h6.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
- if (piece == "0001") { h6.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
- if (piece == "0010") { h6.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
- if (piece == "0011") { h6.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
- if (piece == "0100") { h6.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
- if (piece == "0101") { h6.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
- if (piece == "0110") { h6.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
- if (piece == "0111") { h6.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
- if (piece == "1000") { h6.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
- if (piece == "1001") { h6.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
- if (piece == "1010") { h6.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
- if (piece == "1011") { h6.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
- if (piece == "1100") { h6.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
- }
- if (xtile == "a7")
- {
- if (piece == "0000") { a7.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
- if (piece == "0001") { a7.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
- if (piece == "0010") { a7.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
- if (piece == "0011") { a7.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
- if (piece == "0100") { a7.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
- if (piece == "0101") { a7.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
- if (piece == "0110") { a7.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
- if (piece == "0111") { a7.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
- if (piece == "1000") { a7.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
- if (piece == "1001") { a7.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
- if (piece == "1010") { a7.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
- if (piece == "1011") { a7.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
- if (piece == "1100") { a7.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
- }
- if (xtile == "b7")
- {
- if (piece == "0000") { b7.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
- if (piece == "0001") { b7.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
- if (piece == "0010") { b7.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
- if (piece == "0011") { b7.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
- if (piece == "0100") { b7.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
- if (piece == "0101") { b7.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
- if (piece == "0110") { b7.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
- if (piece == "0111") { b7.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
- if (piece == "1000") { b7.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
- if (piece == "1001") { b7.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
- if (piece == "1010") { b7.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
- if (piece == "1011") { b7.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
- if (piece == "1100") { b7.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
- }
- if (xtile == "c7")
- {
- if (piece == "0000") { c7.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
- if (piece == "0001") { c7.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
- if (piece == "0010") { c7.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
- if (piece == "0011") { c7.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
- if (piece == "0100") { c7.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
- if (piece == "0101") { c7.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
- if (piece == "0110") { c7.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
- if (piece == "0111") { c7.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
- if (piece == "1000") { c7.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
- if (piece == "1001") { c7.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
- if (piece == "1010") { c7.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
- if (piece == "1011") { c7.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
- if (piece == "1100") { c7.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
- }
- if (xtile == "d7")
- {
- if (piece == "0000") { d7.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
- if (piece == "0001") { d7.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
- if (piece == "0010") { d7.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
- if (piece == "0011") { d7.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
- if (piece == "0100") { d7.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
- if (piece == "0101") { d7.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
- if (piece == "0110") { d7.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
- if (piece == "0111") { d7.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
- if (piece == "1000") { d7.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
- if (piece == "1001") { d7.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
- if (piece == "1010") { d7.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
- if (piece == "1011") { d7.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
- if (piece == "1100") { d7.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
- }
- if (xtile == "e7")
- {
- if (piece == "0000") { e7.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
- if (piece == "0001") { e7.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
- if (piece == "0010") { e7.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
- if (piece == "0011") { e7.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
- if (piece == "0100") { e7.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
- if (piece == "0101") { e7.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
- if (piece == "0110") { e7.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
- if (piece == "0111") { e7.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
- if (piece == "1000") { e7.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
- if (piece == "1001") { e7.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
- if (piece == "1010") { e7.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
- if (piece == "1011") { e7.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
- if (piece == "1100") { e7.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
- }
- if (xtile == "f7")
- {
- if (piece == "0000") { f7.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
- if (piece == "0001") { f7.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
- if (piece == "0010") { f7.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
- if (piece == "0011") { f7.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
- if (piece == "0100") { f7.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
- if (piece == "0101") { f7.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
- if (piece == "0110") { f7.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
- if (piece == "0111") { f7.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
- if (piece == "1000") { f7.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
- if (piece == "1001") { f7.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
- if (piece == "1010") { f7.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
- if (piece == "1011") { f7.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
- if (piece == "1100") { f7.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
- }
- if (xtile == "g7")
- {
- if (piece == "0000") { g7.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
- if (piece == "0001") { g7.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
- if (piece == "0010") { g7.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
- if (piece == "0011") { g7.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
- if (piece == "0100") { g7.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
- if (piece == "0101") { g7.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
- if (piece == "0110") { g7.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
- if (piece == "0111") { g7.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
- if (piece == "1000") { g7.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
- if (piece == "1001") { g7.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
- if (piece == "1010") { g7.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
- if (piece == "1011") { g7.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
- if (piece == "1100") { g7.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
- }
- if (xtile == "h7")
- {
- if (piece == "0000") { h7.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
- if (piece == "0001") { h7.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
- if (piece == "0010") { h7.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
- if (piece == "0011") { h7.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
- if (piece == "0100") { h7.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
- if (piece == "0101") { h7.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
- if (piece == "0110") { h7.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
- if (piece == "0111") { h7.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
- if (piece == "1000") { h7.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
- if (piece == "1001") { h7.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
- if (piece == "1010") { h7.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
- if (piece == "1011") { h7.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
- if (piece == "1100") { h7.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
- }
- if (xtile == "a8")
- {
- if (piece == "0000") { a8.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
- if (piece == "0001") { a8.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
- if (piece == "0010") { a8.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
- if (piece == "0011") { a8.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
- if (piece == "0100") { a8.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
- if (piece == "0101") { a8.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
- if (piece == "0110") { a8.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
- if (piece == "0111") { a8.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
- if (piece == "1000") { a8.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
- if (piece == "1001") { a8.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
- if (piece == "1010") { a8.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
- if (piece == "1011") { a8.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
- if (piece == "1100") { a8.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
- }
- if (xtile == "b8")
- {
- if (piece == "0000") { b8.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
- if (piece == "0001") { b8.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
- if (piece == "0010") { b8.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
- if (piece == "0011") { b8.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
- if (piece == "0100") { b8.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
- if (piece == "0101") { b8.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
- if (piece == "0110") { b8.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
- if (piece == "0111") { b8.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
- if (piece == "1000") { b8.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
- if (piece == "1001") { b8.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
- if (piece == "1010") { b8.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
- if (piece == "1011") { b8.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
- if (piece == "1100") { b8.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
- }
- if (xtile == "c8")
- {
- if (piece == "0000") { c8.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
- if (piece == "0001") { c8.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
- if (piece == "0010") { c8.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
- if (piece == "0011") { c8.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
- if (piece == "0100") { c8.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
- if (piece == "0101") { c8.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
- if (piece == "0110") { c8.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
- if (piece == "0111") { c8.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
- if (piece == "1000") { c8.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
- if (piece == "1001") { c8.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
- if (piece == "1010") { c8.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
- if (piece == "1011") { c8.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
- if (piece == "1100") { c8.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
- }
- if (xtile == "d8")
- {
- if (piece == "0000") { d8.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
- if (piece == "0001") { d8.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
- if (piece == "0010") { d8.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
- if (piece == "0011") { d8.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
- if (piece == "0100") { d8.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
- if (piece == "0101") { d8.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
- if (piece == "0110") { d8.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
- if (piece == "0111") { d8.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
- if (piece == "1000") { d8.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
- if (piece == "1001") { d8.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
- if (piece == "1010") { d8.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
- if (piece == "1011") { d8.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
- if (piece == "1100") { d8.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
- }
- if (xtile == "e8")
- {
- if (piece == "0000") { e8.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
- if (piece == "0001") { e8.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
- if (piece == "0010") { e8.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
- if (piece == "0011") { e8.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
- if (piece == "0100") { e8.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
- if (piece == "0101") { e8.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
- if (piece == "0110") { e8.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
- if (piece == "0111") { e8.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
- if (piece == "1000") { e8.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
- if (piece == "1001") { e8.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
- if (piece == "1010") { e8.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
- if (piece == "1011") { e8.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
- if (piece == "1100") { e8.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
- }
- if (xtile == "f8")
- {
- if (piece == "0000") { f8.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
- if (piece == "0001") { f8.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
- if (piece == "0010") { f8.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
- if (piece == "0011") { f8.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
- if (piece == "0100") { f8.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
- if (piece == "0101") { f8.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
- if (piece == "0110") { f8.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
- if (piece == "0111") { f8.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
- if (piece == "1000") { f8.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
- if (piece == "1001") { f8.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
- if (piece == "1010") { f8.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
- if (piece == "1011") { f8.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
- if (piece == "1100") { f8.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
- }
- if (xtile == "g8")
- {
- if (piece == "0000") { g8.Image = WindowsFormsApplication5.Properties.Resources.U0000; } //empty
- if (piece == "0001") { g8.Image = WindowsFormsApplication5.Properties.Resources.U0001; } //white pawn
- if (piece == "0010") { g8.Image = WindowsFormsApplication5.Properties.Resources.U0010; } //white rook
- if (piece == "0011") { g8.Image = WindowsFormsApplication5.Properties.Resources.U0011; } //white knight
- if (piece == "0100") { g8.Image = WindowsFormsApplication5.Properties.Resources.U0100; } //white bishop
- if (piece == "0101") { g8.Image = WindowsFormsApplication5.Properties.Resources.U0101; } //white queen
- if (piece == "0110") { g8.Image = WindowsFormsApplication5.Properties.Resources.U0110; } //white king
- if (piece == "0111") { g8.Image = WindowsFormsApplication5.Properties.Resources.U0111; } //black pawn
- if (piece == "1000") { g8.Image = WindowsFormsApplication5.Properties.Resources.U1000; } //black rook
- if (piece == "1001") { g8.Image = WindowsFormsApplication5.Properties.Resources.U1001; } //black knight
- if (piece == "1010") { g8.Image = WindowsFormsApplication5.Properties.Resources.U1010; } //black bishop
- if (piece == "1011") { g8.Image = WindowsFormsApplication5.Properties.Resources.U1011; } //black queen
- if (piece == "1100") { g8.Image = WindowsFormsApplication5.Properties.Resources.U1100; } //black king
- }
- if (xtile == "h8")
- {
- if (piece == "0000") { h8.Image = WindowsFormsApplication5.Properties.Resources.S0000; } //empty
- if (piece == "0001") { h8.Image = WindowsFormsApplication5.Properties.Resources.S0001; } //white pawn
- if (piece == "0010") { h8.Image = WindowsFormsApplication5.Properties.Resources.S0010; } //white rook
- if (piece == "0011") { h8.Image = WindowsFormsApplication5.Properties.Resources.S0011; } //white knight
- if (piece == "0100") { h8.Image = WindowsFormsApplication5.Properties.Resources.S0100; } //white bishop
- if (piece == "0101") { h8.Image = WindowsFormsApplication5.Properties.Resources.S0101; } //white queen
- if (piece == "0110") { h8.Image = WindowsFormsApplication5.Properties.Resources.S0110; } //white king
- if (piece == "0111") { h8.Image = WindowsFormsApplication5.Properties.Resources.S0111; } //black pawn
- if (piece == "1000") { h8.Image = WindowsFormsApplication5.Properties.Resources.S1000; } //black rook
- if (piece == "1001") { h8.Image = WindowsFormsApplication5.Properties.Resources.S1001; } //black knight
- if (piece == "1010") { h8.Image = WindowsFormsApplication5.Properties.Resources.S1010; } //black bishop
- if (piece == "1011") { h8.Image = WindowsFormsApplication5.Properties.Resources.S1011; } //black queen
- if (piece == "1100") { h8.Image = WindowsFormsApplication5.Properties.Resources.S1100; } //black king
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement