I have look in this wiki page : http://en.doc.boardgamearena.com/Counter
and in the Gomoku.js example.
First, one of those seem out dated, because neither use the same methode to make counter.
What I want is a counter like the score counter on which I can use toValue (this one animate the number changing value, which I find nice).
ie:
For that, I think the way describe in the wiki is what I'm looking for. Am I wrong ?
But, I am missing some context. I do not know where the 'player' variable come from in this section :
it is not clear in the wiki.
and in the Gomoku.js example.
First, one of those seem out dated, because neither use the same methode to make counter.
What I want is a counter like the score counter on which I can use toValue (this one animate the number changing value, which I find nice).
ie:
Code: Select all
this.scoreCtrl[ player_id ].toValue But, I am missing some context. I do not know where the 'player' variable come from in this section :
Code: Select all
player.handSizeCounter = new ebg.counter();
player.handSizeCounter.create('hand_size_player_' + player_id);