import Player from './player';

// A human player that requires user interaction; every human player inherits
// from the base Player model
function HumanPlayer(args) {
  Player.call(this, args);
}
HumanPlayer.prototype = Object.create(Player.prototype);
HumanPlayer.prototype.type = 'human';

export default HumanPlayer;

import Player from './player';

// A human player that requires user interaction; every human player inherits
// from the base Player model
class HumanPlayer extends Player {
  // Nothing to do here!
}
HumanPlayer.prototype.type = 'human';

export default HumanPlayer;

Convert human player model to ES6 class
Convert human player model to ES6 class
