handleInput(direction) {
        switch(direction) {
            /* When the left key is pressed, move the player's character one
             * column to the left.
             */
            case 'left':
                this.update(this.x -= 101);
                break;
            /* When the up key is pressed, move the player's character one row
             * towards the top.
             */
            case 'up':
                this.update(this.y -= 83);
                break;
            /* When the right key is pressed, move the player's character one
             * column to the right.
             */
            case 'right':
                this.update(this.x += 101);
                break;
            /* When the down key is pressed, move the player's character one
             * row towards the bottom.
             */
            case 'down':
                this.update(this.y += 83);
        }
    }
/**
     * @description Move the player's character in the direction of the arrow
     * key pressed by the player.
     * @param {string} direction The direction of the arrow key pressed by the
     * player
     */
@description Move the player's character in the direction of the arrow
key pressed by the player.
@param {string} direction The direction of the arrow key pressed by the
player
@description Move the player ' s character in the direction of the arrow key pressed by the player . @param { string } direction The direction of the arrow key pressed by the player
handleInput(direction) {
        switch(direction) {
            case 'left':
                this.update(this.x -= 101);
                break;
            case 'up':
                this.update(this.y -= 83);
                break;
            case 'right':
                this.update(this.x += 101);
                break;
            case 'down':
                this.update(this.y += 83);
        }
    }
handleInput ( direction ) { switch ( direction ) { case 'left' : this . update ( this . x -= 101 ) ; break ; case 'up' : this . update ( this . y -= 83 ) ; break ; case 'right' : this . update ( this . x += 101 ) ; break ; case 'down' : this . update ( this . y += 83 ) ; } }
@description Move the player's character in the direction of the arrow
 key pressed by the player.
@description Move the player ' s character in the direction of the arrow key pressed by the player .
/* When the left key is pressed, move the player's character one
             * column to the left.
             */ /* When the up key is pressed, move the player's character one row
             * towards the top.
             */ /* When the right key is pressed, move the player's character one
             * column to the right.
             */ /* When the down key is pressed, move the player's character one
             * row towards the bottom.
             */