dist-esnext/Game.js
function isMyTurn(game, from) {
    if (game.score.ended)
        return false;
    from = Board.getPositionFromBoard(game.board, from);
    return isWhiteTurn(game) ? Position.hasWhitePiece(from) : Position.hasBlackPiece(from);
}
function isMyTurn(game, from) {
    if (game.score.ended)
        return false;
    from = Board.getPositionFromBoard(game.board, from);
    return isWhiteTurn(game) ? Position.hasWhitePiece(from) : Position.hasBlackPiece(from);
}
function isMyTurn ( game , from ) { if ( game . score . ended ) return false ; from = Board . getPositionFromBoard ( game . board , from ) ; return isWhiteTurn ( game ) ? Position . hasWhitePiece ( from ) : Position . hasBlackPiece ( from ) ; }
Returns true if from piece can be played.
Returns true if from piece can be played .