-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcharacter_test.py
More file actions
41 lines (24 loc) · 795 Bytes
/
character_test.py
File metadata and controls
41 lines (24 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# -*- coding: utf-8 -*-
"""
Created on Sat Apr 17 17:51:38 2021
@author: Dikhsha
"""
from character import Character
nomnom = Character('nomnom','A restaurant manager in SG')
niri = Character('niri', 'A bi developer in SG')
#nomnom.describe()
nomnom.set_conversation('Hi, What can I get you today?')
niri.set_conversation('Hi Can I get some fries')
nomnom.talk()
niri.talk()
niri.fight('Rod')
from character import Enemy
dave = Enemy('Dave', 'Dave is A smelly zombie!!')
dave.describe()
dave.set_conversation('You have some nerve coming here!')
dave.talk()
dave.set_weakness('Hot iron')
#print(dave.get_weakness())
print("[" + nomnom.name + " says]: " + niri.name + ', what will you fight dave with')
weapon = input()
dave.fight(weapon)