claras_universe,
@claras_universe@ieji.de avatar

I am now working on my own chess API and it’s actually pretty fun. I learned that using bitboards is apparently very efficient. So I now use 8 64bit bitboards, 2 for the color and 6 for the pieces (I thought about just using 7 because you COULD theoretically represent the colors in one bitboard, but using 2 makes it faster at the expense of an extra 64 bit, which is neglegible). Gonna continue on this in the upcoming days :3

bk1e,
@bk1e@mastodon.social avatar

@claras_universe Neat. This reminds me of the Amiga’s bitplane graphics. 16-color mode used 4 bits per pixel, slicing each of the 4 bits into a separate 1-bit bitplane. This format is probably slower for representing chess pieces, though.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • rust
  • rosin
  • DreamBathrooms
  • Durango
  • magazineikmin
  • InstantRegret
  • ngwrru68w68
  • Youngstown
  • everett
  • slotface
  • tacticalgear
  • cisconetworking
  • khanakhh
  • kavyap
  • thenastyranch
  • megavids
  • vwfavf
  • osvaldo12
  • mdbf
  • modclub
  • GTA5RPClips
  • Leos
  • normalnudes
  • cubers
  • ethstaker
  • tester
  • provamag3
  • anitta
  • JUstTest
  • All magazines