package com.beecavegames.slots.bonus.block;

import com.beecavegames.eris.random.RNG;


//**********************************************************************
//**********************************************************************

public class RandomBlockStrategy extends BlockBonusStrategy {

	//----------------------------------------------------------------------
	// constructor

	public RandomBlockStrategy(BlockBonusBoard board)
	{
		super(board);
	}

	//----------------------------------------------------------------------
	// private methods

	@Override
	protected int chooseNextMove(RotatedPiece piece)
	{
		int min = BlockStrategyBasics.leftmost(piece);
		int max = BlockStrategyBasics.rightmost(board, piece);
		int col = min + RNG.instance().nextInt(1+max-min);
		return col;
	}
}
