//encode_X methods are for transforming int into array of its bits.
// this array is as long as number of bits per action needed.
//eg: with 4 bits per action (ie: actions are numbered 0-15)
// encode_action(13) = [1,0,1,1]
// and with 3 bits per action:
// encode_action(13) = [1,0,1]
public int[] encode_action(int action)
{
return(Utils.Encode(action, this.Environment.actionBits()));
}