Question: Please make sure that the code works and specify the purpose for which you wrote the codes. ( PYTHON ) mport numpy import pandas class

Please make sure that the code works and specify the purpose for which you wrote the codes.(PYTHON)
mport numpy
import pandas
class InputError(Exception):
pass
class Character:
"""
Superclass for characters to be used in a new computer game releasing this year.
The game will be a strategy/horror/thriller game played on a coordinate system.
Each character has a coordinate (tuple of integers) indicating their position on the map.
"""
def __init__(self, starting_coordinate: tuple):
"""
Everything to be done whenever this object or an object inherited from it is created will be defined here.
"""
self.current_position = starting_coordinate
def move(self, movement: tuple):
"""
General method to allow a character to change its position. It has no return value.
"""
return NotImplementedError
def walk(self, direction: int):
"""
The character will move 1 unit in the specified direction on the coordinate system. It has no return value.
direction: 0-> up
1-> right
2-> down
3-> left
"""
return NotImplementedError
def jump(self, direction: int):
"""
The character wclass InputError(Exception):
pass
class Character:
""n
Superclass for characters to be used in a new computer game releasing this
The game will be a strategy/horror/thriller game played on a coordinate sys
Each character has a coordinate (tuple of integers) indicating their positi
""""
def (self, starting_coordinate: tuple):
"""
Everything to be done whenever this object or an object inherited from
"""
self.current_position = starting_coordinate
def move(self, movement: tuple):
"""
General method to allow a character to change its position. It has no r
"""
return NotImplementedErro
def walk(self, direction: int):
"""
The character will move 1 unit in the specified direction on the coordi
direction: 0-> up
1 right
2> down
3 left
return NotImplementedError
def jump(self, direction: int):
The character will move linearly 2 units in the specified direction on
direction: 0 up
1 right
2 down
3-> left
"""
return NotImplementedErrox
class Player(Character)
"""
Defines the character controlled by the player in the game,
"""
def (self, starting_coordinate: tuple):
"n"
Everything to be done whenever this object is created will be defined h
The player character can jump a maximum of 2 times during the game.
pass
def see_enemies(self, enemy_list: list)-> int:
"""
This method returns the number of enemies within a 10-unit distance (Eu
using the list containing all Enemy objects in the game.
return NotImplementedError
def jump(self, direction: int)-> bool:
"""
If the player has enough jumping rights, they will jump and the rights
If they don't have any r+darr+s, they cannot move.
Returns True if the posit darr, changes, False if it remains the same.
Returns True if the position changes, False if it remains the same.
direction: 0 up
1 right
2 down
3 left
"""
return NotImplementedError
def is_caught(self, enemy_list: list)-> bool:
"""
Returns True if the player is in the same position as any enemy (gets c
"""
return NotImplementedErrol
class Enemy (Character):
"""
Defines the characters controlled by the computer in the game.
"""
def
.-init__(self, starting_coordinate: tuple):
"""
Everything to be done whenever this object is created will be defined h
"""
pass
def move_randomly(self)
"""
The character selects one of the four directions with equal chance and
It has no return value.
"""
return NotImplementedErro
def see_player(self, player: Player)-> bool
Returns True if the distance between the enemy's position and the playe
False otherwise.
""
return NotImplementedError
def ai_movement(self, player: Player):
"n"
If the Enemy sees the player, it moves towards the player; otherwise, i
It has no return value.
"""
return NotImplementedError
Please make sure that the code works and specify

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!