You can change number of attack tries and how many ships to be generated by changing below vlues in the RunMain() method.
BattleBoard bb = new BattleBoard
{
attackTry = 0, <span style="color:#2E933C">// Do not change this</span>
Attempt = 20, <span style="color:#2E933C">// Edit this value to change - how many tries to attack</span>
ShipCount = 2 <span style="color:#2E933C">// Edit this value to change - how many ships to be generated</span>
};