Single Status Update
Chess has some annoying rules lol castling and en passant...
Those rules really aren't that hard to figure out though. If you really want to have some fun? Try looking into fairy chess and see how many different fairy chess pieces you can add support for! I think it would be fun to make a sort of generic chess-like engine that could support different pieces.
@Kayzee ya it's not hard. Just couple condition checks here and there.
The real fun is when you want to build a custom chess engine with user-defined rules. For example, maybe bishop can only move up to 4 squares at a time.
The way the chess engine is written is you have a bunch of pieces.
1. Each piece has a "class" like queen/king/rook.
2. Each class has a set of "move rules". A rook can "move forward up to 8 spaces" and "move backwards up to 8 spaces". It can also "move left up 8 spaces" and "move right up to 8 spaces"
You could customize your own pieces by defining custom classes and adding separate move rules.
So you want your bishop to be less OP? Maybe it can only move up to 3 squares at a time? No problem, just set the "distance" to 3.
It can further be generalized to support special types of moves, but I haven't figured out how to do that yet. Knight moves, king castling, pawn double jump, etc.
Or, Battalion/Double Chess. Four-player chess that has two Queens, which both have to be captured to win.
- Show next comments 3 more