Deadpool: A191 STIN1013 Introduction To Artificial Intelligence Lecterur
Deadpool: A191 STIN1013 Introduction To Artificial Intelligence Lecterur
STIN1013
INTRODUCTION TO ARTIFICIAL
INTELLIGENCE
LECTERUR
PUAN HUSNIZA HUSNI
Deadpool
PREPARED BY
VISNU A/L MANIMARAN 252959
1
Table of Contents
DESCRIPTION OF DEADPOOL......................................................................................................3
THE SEMANTIC NETWORK..........................................................................................................4
OBJECT...........................................................................................................................................5
ATTRIBUTE................................................................................................................................5
FOPL RULES.....................................................................................................................................6
FOPL FACTS..................................................................................................................................8
FORWARD CHAINING....................................................................................................................9
PROLOG FACTS..............................................................................................................................10
PROLOG RULES.........................................................................................................................11
2
DESCRIPTION OF DEADPOOL
3
THE SEMANTIC NETWORK
4
OBJECT
1. Mutant
2. Weapon
3. Deadpool
4. Enemies
5. Wearsuit
ATTRIBUTE
1. isa
2. has
3. can
4. type
5. power
6. appearin
7. colour
8. make
9. appearance
10. colour
5
FOPL RULES
1.If X is agile
And X has superpower
Then X is mutant
FOPL : is (X, agile)^has(X,superpower) is (X, mutant)
4. If X is anti hero
And X is sarcastic
Then X is a deadpool
FOPL : is (X, antihero) ^ is(X, sarcastic) is(X, deadpool)
6
Then X is deadpool
FOPL : appear_in(X, marvel_comic) ^ make (X, dark_comedy) is (X, deadpool)
7.If X is immortality
And X can self healing
Then X has power
FOPL : is (X, immortality) ^ can(X, self_healing)has(X,
power)
7
FOPL FACTS
O A1 : is_a (deadpool, mutant)
O A2 : has (deadpool, power)
O A3 : has (deadpool, self_heal)
O A4 : has(deadpool,immortal)
O A5 : type(weapon,guns)
O A6 : type(weapon,swords)
O A7 : power (deadpool, healing)
O A8 : power(deadpool, imoratality)
O A9 : appearin(deadpool,marvel_comics)
O A10: isa(enimies,t_ray)
O A11 : isa(enimies,evildeadpool)
O A12 : colour(wear_suit,red)
O A13 : colour(wear_suit,black)
O A14 : has(wear_suit,white_patches_on_eyes)
O A15 : isa(deadpool,sarcarstics)
O A16 : make(deadpool,dark_comedy)
O A17 : appearance(deadpool,wear_suit)
O A18 : cure (deadpool, diseases)
O A19 : meet ( deadpool, ancient_one)
O A20 : has(deadpool,weapon)
O A21 : has (deadpool,enemies)
8
FORWARD CHAINING
CYCLE 1
9
PROLOG FACTS
1. is_a(iceman,mutant).
2. is_a(storm,mutant).
3. is_a(mutant,immortal).
4. is_a(mutant,agile).
5. is_a(deadpool,mutant).
6. is_a(deadpool,sarcarstic).
7. is_a(X,mutant).
8. is_a(X,immortal)
9. is_a(X,agile).
10. is_a(t_ray,enemy).
11. is_a(evildeadpool,enemy).
12. is_a(deadpool,antihero).
13. is_a(deadpool,deadpool).
14. is_a(mutant,mutant).
15. has(mutant,powers).
16. has(suit,white_patches_inthe_eyes).
17. has(deadpool,guns).
18. has(deadpool,sword).
19. has(X,weapons):-
20. has(X,guns) ,
21. has(X,sword).
22. has(deadpool,enemy).
23. has(deadpool,weapons).
24. appear(deadpool,marvel_comics).
25. colour(suit,red).
26. can(mutant,selfheal).
27. ememies_is(deadpool,y).
28. ememies_is(deadpool,y).
29. makes(deadpool,dark_comedy).
30. wear(deadpool,suit).
31. power(deadpool,healing).
32. power(deadpool,disease).
10
PROLOG RULES
1. has(X,weapons):- has(X,guns),has(X,sword).
2. has(X,enemy):-enemies_is(X,t_ray),enemies_is(X,evildeadpool).
3. has(X,enemies):-is_a(Y,enemy),is_a(Y,enemy).
4. is_a(X,mutant):-is_a(X,immortal),is_a(X,agile).
5. is_a(X,antihero):- makes(X,dark_comedy),has(X,weapons).
6. is_a(X,deadpool):-has(X,enemies),has(X,weapons).
7. appear(X,marvel_comics):-wear(X,suit),makes(X,dark_comedy).
8. appear(X,marvel_comics):-is_a(X,sarcarstic),makes(X,dark_comedy).
9. colour(X,red):-wear(deadpool,X),has(X,white_patches_inthe_eyes).
11
12