Question: # ! / usr / bin / python 3 ### CSCI - B 3 5 1 / COGS - Q 3 5 1 Spring 2
#usrbinpython
### CSCIB COGSQ Spring
### Framework code copyright BQ instruction team.
### Do not copy or redistribute this code without permission
### and do not share your solutions outside of this class.
### Doing so constitutes academic misconduct and copyright infringement.
import math
from board import Board
class BasePlayer:
def initself maxdepth,horde False,relativehorde False,relativescore False:
self.maxdepth maxdepth
self.horde horde
self.relativehorde relativehorde
self.relativescore relativescore
##################
# TODO #
##################
# Assign integer scores to the three terminal states
# PWINSCORE TIESCORE PWINSCORE
# Access these selfTIESCORE", etc.
PWINSCORE
PWINSCORE
TIESCORE
# Returns a heuristic for the board position
# Good positions for pieces should be positive and
# good positions for pieces should be negative
# for all boards, PWINSCORE heuristicb PWINSCORE
def heuristicself board:
raise NotImplementedError
def findMoveself trace:
raise NotImplementedError
class ManualPlayerBasePlayer:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
