Often for interview purposes I'm asked to implement something around chess. 8-Queens problem or some kind of simulator. This library is a small subset of "domain code" for implementing Chess.
I've implemented it Kotlin because:
- Kotlin is cool atm
- Cross compiling to JVM and JS(if I would interview for frontend roles needed chess)
- Since its JVM I can use it in Scala <3
You can find here code implementing logic for the standard chess pieces and basic board.
- Fully immutable Board
- Castling
- Piece Promotion
- En passant
- Checkmate(just check for now)