Skip to content

Instantly share code, notes, and snippets.

View OnLi-lang's full-sized avatar

iLLiUm OnLi-lang

View GitHub Profile
import time
import random
class Char:
def __init__(self, name, health, damage):
self.name = name
self.health = health
self.damage = damage
def __str__(self):
print(f"{self.name}\n{self.health}hp\n{self.damage} dmg")