Skip to content

Instantly share code, notes, and snippets.

@fmasanori
Last active August 29, 2015 14:04
Show Gist options
  • Save fmasanori/f000a3327346e557f2c5 to your computer and use it in GitHub Desktop.
Save fmasanori/f000a3327346e557f2c5 to your computer and use it in GitHub Desktop.
JS Chess
#@gwidion code
print"".join(u"\x1b[%dm%c%s"%((42+y%2^y>>3&1),((1,3,2,-1,0,2,3,1)+(4,)*8+32*(-9781,)+8*(10,)+(7,9,8,5,6,8,9,7))[y]+9813,(y+1)%8and" "or" \x1b[48m\n")for y in range(64))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment