static void Main(string[] args) { Player player = new Player(); for (int i = 0; i < 20; i++) { player.Hit(); Console.WriteLine("Is player alive: " + player.IsAlive); } }