picochess (#pico1k)
- September 11, 2021
- jamesedge
simple 2 player chess game for #pico1k jam. pseudo-legal implementation which ignores en-passant, castling and promotion. full code (1022 chars): poke(0x5f2d,1)h=stat b={}n=-1 r=circ for k=0,63do b[k]=ord('rnbqkbnrpppppppp________________________________PPPPPPPPRNBQKBNR',k+1)end function z(x)return-sin(x/abs(x*4))end::_::cls()w={}for k=0,63do p=b[k]x,y=k%8,k\8rectfill(x*16,y*16,x+1<<4,y+1<95 and 0…