Package kuimaze :: Module searchagent
[hide private]
[frames] | no frames]

Source Code for Module kuimaze.searchagent

 1  #!/usr/bin/env python 
 2  # -*- coding: utf-8 -*- 
 3   
 4  ''' 
 5  Contains class BaseAgent from which all of players must inherit. 
 6  @author: Zdeněk Rozsypálek, and the KUI-2018 team 
 7  @contact: svobodat@fel.cvut.cz 
 8  @copyright: (c) 2017, 2018 
 9  ''' 
10   
11  import collections 
12  import random 
13   
14  import kuimaze.maze 
15  from kuimaze.baseagent import BaseAgent 
16   
17 -class SearchAgent(BaseAgent):
18 ''' 19 Base class for all search agents, which extends BaseAgent Class. All student solutions must inherit from this class. 20 ''' 21
22 - def heuristic_function(self, position, goal):
23 ''' 24 Method that must be implemented by you. Otherwise raise NotImplementedError. We are expecting that you will implement some admissible heuristic function. 25 26 @return: value 27 ''' 28 raise NotImplementedError('Not implemented yet')
29