public void Play(Sticks sticks) { int amountToRemove = 3; if (sticks.Amount == 3) { amountToRemove = 2; } else if (sticks.Amount == 2 || sticks.Amount == 1) { amountToRemove = 1; } sticks.RemoveSticks(amountToRemove); }
public Game(Factory factory) { _view = factory.GetNewView(); _sticks = factory.GetNewSticks(); _AIPlayer = factory.GetNewAIPlayer(); }
public virtual void PresentNumberOfSticksLeft(Sticks sticks) { _console.WriteLine($"There are {sticks.Amount} number of sticks left!"); }