SlideShare a Scribd company logo
1 of 1
Download to read offline
Problem 2. (30 points)
For problem 2, you will put answers in your writeup for a. Also make alterations to the
given python module.
a. Find the definition for Gomoku (5-in-a-row) in the aima code. Build an evaluation
function for gomoku. In your writeup, briefly explain what your evaluation function is
doing.
b. In the function problem 2b, run 20 games of a random agent versus an alpha-beta-
cutoff agent using your evaluation function, with each agent playing 10 times as X and
10 times as O. Choose a depth cutoff that will allow each game to complete in under
20 seconds. Have the function return its results as a tuple containing wins as X as the
first item, and wins as O as the second item. So if your agent wins every single game,
it will return (10,10).

More Related Content

More from alfacomputers2

More from alfacomputers2 (20)

Q1. Imagine a researcher starting work on the obesity epidemic. In t.pdf
Q1. Imagine a researcher starting work on the obesity epidemic. In t.pdfQ1. Imagine a researcher starting work on the obesity epidemic. In t.pdf
Q1. Imagine a researcher starting work on the obesity epidemic. In t.pdf
 
Q1 What is allocation or absorption The margin allocated to each .pdf
Q1 What is allocation or absorption The margin allocated to each .pdfQ1 What is allocation or absorption The margin allocated to each .pdf
Q1 What is allocation or absorption The margin allocated to each .pdf
 
Q1 Which white blood cell assists in the regulation of the immune re.pdf
Q1 Which white blood cell assists in the regulation of the immune re.pdfQ1 Which white blood cell assists in the regulation of the immune re.pdf
Q1 Which white blood cell assists in the regulation of the immune re.pdf
 
Q1 Find the (a) mean, (b) median, (c) mode, and (d) midrange for th.pdf
Q1 Find the (a) mean, (b) median, (c) mode, and (d) midrange for th.pdfQ1 Find the (a) mean, (b) median, (c) mode, and (d) midrange for th.pdf
Q1 Find the (a) mean, (b) median, (c) mode, and (d) midrange for th.pdf
 
Q.4 Consider the experiment of rolling a pair of dice. Suppose that .pdf
Q.4 Consider the experiment of rolling a pair of dice. Suppose that .pdfQ.4 Consider the experiment of rolling a pair of dice. Suppose that .pdf
Q.4 Consider the experiment of rolling a pair of dice. Suppose that .pdf
 
PyJa Institute is an institute set up to manage the following progra.pdf
PyJa Institute is an institute set up to manage the following progra.pdfPyJa Institute is an institute set up to manage the following progra.pdf
PyJa Institute is an institute set up to manage the following progra.pdf
 
PurposeMany Americans are very generous donating their time, money.pdf
PurposeMany Americans are very generous donating their time, money.pdfPurposeMany Americans are very generous donating their time, money.pdf
PurposeMany Americans are very generous donating their time, money.pdf
 
Provide an example of a business that grew too fast. What where the .pdf
Provide an example of a business that grew too fast. What where the .pdfProvide an example of a business that grew too fast. What where the .pdf
Provide an example of a business that grew too fast. What where the .pdf
 
PurposeDetermining who has the right to claim the dependency exem.pdf
PurposeDetermining who has the right to claim the dependency exem.pdfPurposeDetermining who has the right to claim the dependency exem.pdf
PurposeDetermining who has the right to claim the dependency exem.pdf
 
Puello Corporation ha proporcionado los siguientes datos sobre un pr.pdf
Puello Corporation ha proporcionado los siguientes datos sobre un pr.pdfPuello Corporation ha proporcionado los siguientes datos sobre un pr.pdf
Puello Corporation ha proporcionado los siguientes datos sobre un pr.pdf
 
Provided their employers followed the recommended guidelines, which .pdf
Provided their employers followed the recommended guidelines, which .pdfProvided their employers followed the recommended guidelines, which .pdf
Provided their employers followed the recommended guidelines, which .pdf
 
Provide a reporting information for the POM+ project. MSProject has .pdf
Provide a reporting information for the POM+ project. MSProject has .pdfProvide a reporting information for the POM+ project. MSProject has .pdf
Provide a reporting information for the POM+ project. MSProject has .pdf
 
Prostitution and solicitation are referred to as victimless crimes. .pdf
Prostitution and solicitation are referred to as victimless crimes. .pdfProstitution and solicitation are referred to as victimless crimes. .pdf
Prostitution and solicitation are referred to as victimless crimes. .pdf
 
Proporcione una breve historia del desarrollo del federalismo en los.pdf
Proporcione una breve historia del desarrollo del federalismo en los.pdfProporcione una breve historia del desarrollo del federalismo en los.pdf
Proporcione una breve historia del desarrollo del federalismo en los.pdf
 
Project topic - Development of a Predictive Maintenance System usin.pdf
Project topic - Development of a Predictive Maintenance System usin.pdfProject topic - Development of a Predictive Maintenance System usin.pdf
Project topic - Development of a Predictive Maintenance System usin.pdf
 
PROJECT PAPER TOPIC Developing a security policy framework for smal.pdf
PROJECT PAPER TOPIC Developing a security policy framework for smal.pdfPROJECT PAPER TOPIC Developing a security policy framework for smal.pdf
PROJECT PAPER TOPIC Developing a security policy framework for smal.pdf
 
Professor Donald Henderson first pointed out how discussions of ambi.pdf
Professor Donald Henderson first pointed out how discussions of ambi.pdfProfessor Donald Henderson first pointed out how discussions of ambi.pdf
Professor Donald Henderson first pointed out how discussions of ambi.pdf
 
Profes�r Rodr�guez redaksiyon �almasn y�r�tt��nde, bask ve bilgisaya.pdf
Profes�r Rodr�guez redaksiyon �almasn y�r�tt��nde, bask ve bilgisaya.pdfProfes�r Rodr�guez redaksiyon �almasn y�r�tt��nde, bask ve bilgisaya.pdf
Profes�r Rodr�guez redaksiyon �almasn y�r�tt��nde, bask ve bilgisaya.pdf
 
Profit Margins and Sustainable Growth The Sandar Co. has a debt�equi.pdf
Profit Margins and Sustainable Growth The Sandar Co. has a debt�equi.pdfProfit Margins and Sustainable Growth The Sandar Co. has a debt�equi.pdf
Profit Margins and Sustainable Growth The Sandar Co. has a debt�equi.pdf
 
Process integration addresses the integration of tools where differe.pdf
Process integration addresses the integration of tools where differe.pdfProcess integration addresses the integration of tools where differe.pdf
Process integration addresses the integration of tools where differe.pdf
 

Recently uploaded

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
MateoGardella
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 

Recently uploaded (20)

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 

Problem 2. (30 points) For problem 2, you will put answers in your.pdf

  • 1. Problem 2. (30 points) For problem 2, you will put answers in your writeup for a. Also make alterations to the given python module. a. Find the definition for Gomoku (5-in-a-row) in the aima code. Build an evaluation function for gomoku. In your writeup, briefly explain what your evaluation function is doing. b. In the function problem 2b, run 20 games of a random agent versus an alpha-beta- cutoff agent using your evaluation function, with each agent playing 10 times as X and 10 times as O. Choose a depth cutoff that will allow each game to complete in under 20 seconds. Have the function return its results as a tuple containing wins as X as the first item, and wins as O as the second item. So if your agent wins every single game, it will return (10,10).