using System;
public class Program
{
public static void Main()
while(player1.health>0);
Ship player1 = new Ship(100);
player1.TakeDamage();
Console.Write("P1: "+player1.health);
}
public class Ship{
public int health;
public Ship(int h){
health = h;
public void TakeDamage(){
health-=10;