Hey I am learning JS and trying to write a simple multi-player chess game. I am trying to have all different pieces inherit from the same super class. Like in Java Id have Pawn, Knight, Bishop, etc extend an abstract super class GamePiece. Is that possible?
Or is the closest thing having each type of piece have a separate constructor and reference same functions such as move() or take(), only with different arguments?