MCPcopy Create free account

hub / github.com/PacktPublishing/Artificial-Intelligence-with-Python / types & classes

Types & classes32 in github.com/PacktPublishing/Artificial-Intelligence-with-Python

↓ 8 callersClassAI_Player
Class for an AI player. This class must be initialized with an AI algortihm, like ``AI_Player( Negamax(9) )``
Chapter 09/code/easyAI/Player.py:46
↓ 4 callersClassNegamax
This implements Negamax on steroids. The following example shows how to setup the AI and play a Connect Four game: >>> from easy
Chapter 09/code/easyAI/AI/Negamax.py:112
↓ 2 callersClassHuman_Player
Class for a human player, which gets asked by text what moves she wants to play. She can type ``show moves`` to display a list of moves,
Chapter 09/code/easyAI/Player.py:11
↓ 2 callersClassProg
Chapter 08/code/robot.py:86
↓ 1 callersClassCRFModel
Chapter 11/code/crf.py:20
↓ 1 callersClassCustomProblem
Chapter 07/code/greedy_search.py:13
↓ 1 callersClassGameController
Chapter 09/code/tic_tac_toe.py:6
↓ 1 callersClassGameController
Chapter 09/code/connect_four.py:7
↓ 1 callersClassGameController
Chapter 09/code/hexapawn.py:6
↓ 1 callersClassLastCoinStanding
Chapter 09/code/coins.py:6
↓ 1 callersClassMazeSolver
Chapter 07/code/maze.py:5
↓ 1 callersClassModelHMM
Chapter 12/code/speech_recognizer.py:20
↓ 1 callersClassObjectTracker
Chapter 13/code/camshift.py:5
↓ 1 callersClassPuzzleSolver
Chapter 07/code/puzzle.py:4
↓ 1 callersClassRobotController
Chapter 08/code/robot.py:8
↓ 1 callersClassSSS
This implements SSS* algorithm. The following example shows how to setup the AI and play a Connect Four game: >>> from easyAI im
Chapter 09/code/easyAI/AI/SSS.py:5
↓ 1 callersClassTT
A tranposition table made out of a Python dictionnary. It can only be used on games which have a method game.ttentry() -> string, or tupl
Chapter 09/code/easyAI/AI/TT.py:9
ClassAddHashTT
Chapter 09/code/easyAI/AI/Hashes.py:23
ClassBernsteinHashTT
Chapter 09/code/easyAI/AI/Hashes.py:31
ClassDUAL
This implements DUAL algorithm. The following example shows how to setup the AI and play a Connect Four game: >>> from easyAI im
Chapter 09/code/easyAI/AI/DUAL.py:5
ClassDictTT
A DictTT implements custom dictionary, which can be used with transposition tables.
Chapter 09/code/easyAI/AI/DictTT.py:4
ClassELFHashTT
Chapter 09/code/easyAI/AI/Hashes.py:63
ClassFNVHashTT
Chapter 09/code/easyAI/AI/Hashes.py:39
ClassHashTT
Base Class for various types of hashes
Chapter 09/code/easyAI/AI/HashTT.py:3
ClassJSWHashTT
Chapter 09/code/easyAI/AI/Hashes.py:57
ClassJenkinsHashTT
The most advanced hash function on the list. Way too many things going on to put something smart in short comment.
Chapter 09/code/easyAI/AI/Hashes.py:77
ClassOneAtATimeTT
Chapter 09/code/easyAI/AI/Hashes.py:45
ClassRotateHashTT
Chapter 09/code/easyAI/AI/Hashes.py:27
ClassShiftAndAddHashTT
Chapter 09/code/easyAI/AI/Hashes.py:35
ClassSimpleHashTT
Surprisingly - very effective for strings
Chapter 09/code/easyAI/AI/Hashes.py:12
ClassTwoPlayersGame
Base class for... wait for it... two-players games ! To define a new game, make a subclass of TwoPlayersGame, and define the follow
Chapter 09/code/easyAI/TwoPlayersGame.py:4
ClassXorHashTT
Chapter 09/code/easyAI/AI/Hashes.py:19