This is a fully working chess program with graphics. In 1024 bytes of JS. o_0
In case you don't take the time to have your mind blown, here's the source (1014 characters):for(B=i=y=u=b=i=5-5,x=10,I=[],l=[];l[B]="ECDFBDCEAAAAAAAAIIIIIIIIMKLNJLKM@G@TSb~?A6J57IKJT576,+-48HLSUmgukgg OJNMLK  IDHGFE".charCodeAt(B)-64,B++9&&G|A>2){if(!(R-2&7))return 78-h29:Th||12){I[T]=n;I[O]=0;S-=X(c,h+1,e,S-N);if(!(h||c-1|B-O|T-b|SN||!h&S==N&&Math.random()1)if(h?s-S2||(T=O,(G||A>2|(e?O>78:O--A))}return N}function W(){i="";for(u=18;u8?W(B=b):X(1,0,0)'style='font-size:50px'bgcolor=#"+(u-B?u.9&1||9:"d")+"0f0e0>&#"+(I[u]?9808+l[67+I[u]]:160)+";":u++&&"");document.body.innerHTML=i+""}W();Beautified:   for (B = i = y = u = b = i = 5 - 5, x = 10, I = [], l = []; l[B] = "ECDFBDCEAAAAAAAAIIIIIIIIMKLNJLKM@G@TSb~?A6J57IKJT576,+-48HLSUmgukgg OJNMLK IDHGFE".charCodeAt(B) - 64, B++ < 120; I[B - 1] = B % x ? B / x % x < 2 | B % x < 2 ? 7 : B / x & 4 ? 0 : l[i++] : 7);
   
   function X(c, h, e, s) {
       e ^= 8;
       for (var o, S, C, A, R, T, G, n, N = -1e8, O = 20; ++O < 99;) if ((o = I[T = O]) && (G = o ^ e) < 7) {
           A = G-- & 2 ? 8 : 4;
           C = o - 9 ? l[61 + G] : 49;
           do
           if (!(R = I[T += l[C]]) && !! G | A  9 && G | A > 2) {
               if (!(R - 2 & 7)) return 78 - h << x;
               n = G | (e ? T > 29 : T < 91) ? o : 6 ^ e;
               S = (R && l[R & 7 | 32] - h - G) + (G ? 0 : n - o ? 55 : (A < 2) + 1);
               if (c > h || 1  2) {
                   I[T] = n;
                   I[O] = 0;
                   S -= X(c, h + 1, e, S - N);
                   if (!(h || c - 1 | B - O | T - b | S < -1e4)) return W(B = 0), e && setTimeout("X(2,0,8),X(1,0,8)", 50);
                   I[O] = o;
                   I[T] = R
               }
               if (S > N || !h & S == N && Math.random()  1) if (h ? s - S < 0 : (B = O, b = T, 0)) return S
           }
           while (!R & G > 2 || (T = O, (G || A > 2 | (e ? O > 78 : O < 41) & !R) && ++C--A))
       }
       return N
   }
   function W() {
       i = "";
       for (u = 18; u 8?W(B=b):X(1,0,0)'style='font-size:50px'bgcolor=#" + (u - B ? u.9 & 1 || 9 : "d") + "0f0e0>&#" + (I[u] ? 9808 + l[67 + I[u]] : 160) + ";" : u++ && "");
       document.body.innerHTML = i + ""
   }
   W();