Begining HTML5 game part 3
To continue “Begining HTML5 game part 2” : Today, we build and play BlackJack game. In js folder, create player.js file : contain methods of player interactive with cards and computer var Player = function(name) { this.cards = []; this.x=400; //position for cards this.y=300; …