Repository navigation
Expand file tree
/
Copy pathAgent.py
More file actions
37 lines (34 loc) · 1.42 KB
/
Copy pathAgent.py
File metadata and controls
37 lines (34 loc) · 1.42 KB
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
WeChat: cstutorcs
QQ: 749389476
Email: tutorcs@163.com
# Your Agent for solving Raven's Progressive Matrices. You MUST modify this file.
#
# You may also create and submit new files in addition to modifying this file.
#
# Make sure your file retains methods with the signatures:
# def __init__(self)
# def Solve(self,problem)
#
# These methods will be necessary for the project's main method to run.
# Install Pillow and uncomment this line to access image processing.
#from PIL import Image
#import numpy
class Agent:
# The default constructor for your Agent. Make sure to execute any
# processing necessary before your Agent starts solving problems here.
#
# Do not add any variables to this signature; they will not be used by
# main().
def __init__(self):
pass
# The primary method for solving incoming Raven's Progressive Matrices.
# For each problem, your Agent's Solve() method will be called. At the
# conclusion of Solve(), your Agent should return an int representing its
# answer to the question: 1, 2, 3, 4, 5, or 6. Strings of these ints
# are also the Names of the individual RavensFigures, obtained through
# RavensFigure.getName(). Return a negative number to skip a problem.
#
# Make sure to return your answer *as an integer* at the end of Solve().
# Returning your answer as a string may cause your program to crash.
def Solve(self,problem):
return -1