src/games/snakeGame/Objects/snakeObject.js
/**
     * draw method to draw snake cell
     */
draw method to draw snake cell
draw method to draw snake cell
draw(color) {
        this.ctx.fillStyle = color;
        this.ctx.fillRect(this.xPos, this.yPos, this.height, this.width);
        this.ctx.strokeStyle = "black";
        this.ctx.strokeRect(this.xPos, this.yPos, this.height, this.width);
    }
draw ( color ) { this . ctx . fillStyle = color ; this . ctx . fillRect ( this . xPos , this . yPos , this . height , this . width ) ; this . ctx . strokeStyle = "black" ; this . ctx . strokeRect ( this . xPos , this . yPos , this . height , this . width ) ; }
draw method to draw snake cell
draw method to draw snake cell