summaryrefslogtreecommitdiff
path: root/pawns_move.js
blob: f304608a59106550611394df870c96fe6735d5a7 (plain)
1
2
3
4
5
6
7
function pawn_move(board, y, x){
    let moves =[];    
    // * if pawn at row 1 or at row 6 it has to choice
    if(x<board.length && x >-1 && y<board.length && y>-1){
        moves.push()
    }
}