/**
 * Poker.Player
 */
;(function () {
  'use strict'

  // If a PLayer is not instantiated with an id,
  // one will be created for it.
  var uid = (function () {
    var u = 0
    return function () {
      return 'player-' + u++
    }
  }()),

  defaults = {
    //
  }


  /**
   * @constructor
   */
  Player = function (options) {
    this.options = util.extend({ id: uid() }, defaults, options || {})
  }

  Player.prototype = {
    //
  }
}());




/**
 * Poker.Player
 */
;(function () {
  'use strict'

  // If a PLayer is not instantiated with an id,
  // one will be created for it.
  var uid = (function () {
    var u = 0
    return function () {
      return 'player-' + u++
    }
  }()),

  defaults = {
    //
  },

  UP    = 'up',
  DOWN  = 'down'


  /**
   * @constructor
   */
  Player = function (options) {
    this.options = util.extend({ id: uid() }, defaults, options || {})
    this.folded = false
    this.chips = 0
    this.bet = 0
    this.hand = new Hand
    this.cardsUp = []
    this.cardsDn = []
  }

  Player.prototype = {

    /**
     *
     */
    addCard: function (options) {
      this.hand.add(options.card)
      if (options.face = UP) {
        this.cardsUp.push(options.card)
      } else {
        this.cardsDn.push(options.card)
      }
    },

    removeCards: function () {
      //
    }
  }


  // Constants that correspond with lingo[lang].action array.
  Player.FOLD   = 1
  Player.BET    = 2
  Player.CALL   = 3
  Player.RAISE  = 4
}());




add constants and other basics to Player