Uploaded by Farhan Ali Khan

AI-LAB-Assignment 2-Farhan Ali Khan

advertisement
COMSATS UNIVERSITY ISLAMABAD, ATTOCK CAMPUS
LAB Assignment #2
Submitted
By
Farhan Ali Khan
Reg No
FA19-BSE-004
Subject
AI(Artificial Intelligence)
Submitted
To
Date
Mr.Salah Ud Din
7 NOV 2021
Q.#1
a) Create python class named as your registration number just like fa19bse008.py
b) Write a method in your class to input game tree as given below from the user.
(10)
c) Write a method in your class to find the minimax value of any given tree. (10)
d) Create an object of your class, call method to get input from user and call
method to show
the minimax value of given input tree (5). Upload screen shots of running code with
input
game tree and output value.
CODE ScreenShot:-
OUTPUT of given Code:-
THE END
Download