internal bool ShouldPlayAnotherHand() { if (Computer.IsBroke) { _io.WriteLine("I'm busted. Congratulations!"); return(true); } if (Human.IsBroke) { _io.WriteLine("Your wad is shot. So long, sucker!"); return(true); } _io.WriteLine($"Now I have $ {Computer.Balance} and you have $ {Human.Balance}"); return(_io.ReadYesNo("Do you wish to continue")); }
public void Play() { _io.Write(Streams.Introduction); do { var board = new Board(); do { _io.WriteLine(board); _io.WriteLine(); } while (board.PlayMove(_io)); _io.WriteLine(board.GetReport()); } while (_io.ReadYesNo(Prompts.TryAgain) == "yes"); _io.Write(Streams.Bye); }