Ooooooh...chess variant I just thought of: add two more pieces that are portals. Pieces can move through them. That would probably make for some insane strategies.
@El'endiaStarman really unfinished JS chess engine, no idea how to do pawns, and whether putting getPossibleMoves on the Piece and passing it a Board is good code style
@ASCII-only Heh, ArbyChess is considerably more developed. It can do everything in normal chess except checkmate, and that's because I stalled on how to parse conditionals. I could actually finish it now that I have such experience from Pytek.
Well, technically, 50-move draw, three-fold repetition draw, and stalemate aren't included either.
Help, should a Piece know about the Board it's on? It would certainly make things a lot faster, but I don't know if it's accepted/acceptable code style
@ASCII-only In ArbyChess, every piece knows what cell it's on, and that cell knows what it's adjacent to. That's all of the information needed in order to know where that piece can move to, because you can follow chains of adjacencies. I dunno if that'll help you because ArbyChess had to be designed that way in order to allow truly bizarre boards, but maybe it'll help.
@ASCII-only You could do something like where moving off either the left edge or the right edge of the board teleports you to the other side, but shifts you either up or down a rank depending on your piece was on an odd or even rank.
Also, this taxonomy room is kinda the wrong place to put this conversation. :P
Y'know what, I think some people expected this chat room to be about game design. How about I go make a room for that, and move this conversation there?
I've messed around with game dev a lot, (it's actually how I first got into coding) but I've never gotten far enough over the technical hurdle to think about things like balancing and making it fun.