Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PacktPublishing/Artificial-Intelligence-with-Python
/ types & classes
Types & classes
32 in github.com/PacktPublishing/Artificial-Intelligence-with-Python
⨍
Functions
204
◇
Types & classes
32
↓ 8 callers
Class
AI_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 callers
Class
Negamax
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 callers
Class
Human_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 callers
Class
Prog
Chapter 08/code/robot.py:86
↓ 1 callers
Class
CRFModel
Chapter 11/code/crf.py:20
↓ 1 callers
Class
CustomProblem
Chapter 07/code/greedy_search.py:13
↓ 1 callers
Class
GameController
Chapter 09/code/tic_tac_toe.py:6
↓ 1 callers
Class
GameController
Chapter 09/code/connect_four.py:7
↓ 1 callers
Class
GameController
Chapter 09/code/hexapawn.py:6
↓ 1 callers
Class
LastCoinStanding
Chapter 09/code/coins.py:6
↓ 1 callers
Class
MazeSolver
Chapter 07/code/maze.py:5
↓ 1 callers
Class
ModelHMM
Chapter 12/code/speech_recognizer.py:20
↓ 1 callers
Class
ObjectTracker
Chapter 13/code/camshift.py:5
↓ 1 callers
Class
PuzzleSolver
Chapter 07/code/puzzle.py:4
↓ 1 callers
Class
RobotController
Chapter 08/code/robot.py:8
↓ 1 callers
Class
SSS
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 callers
Class
TT
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
Class
AddHashTT
Chapter 09/code/easyAI/AI/Hashes.py:23
Class
BernsteinHashTT
Chapter 09/code/easyAI/AI/Hashes.py:31
Class
DUAL
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
Class
DictTT
A DictTT implements custom dictionary, which can be used with transposition tables.
Chapter 09/code/easyAI/AI/DictTT.py:4
Class
ELFHashTT
Chapter 09/code/easyAI/AI/Hashes.py:63
Class
FNVHashTT
Chapter 09/code/easyAI/AI/Hashes.py:39
Class
HashTT
Base Class for various types of hashes
Chapter 09/code/easyAI/AI/HashTT.py:3
Class
JSWHashTT
Chapter 09/code/easyAI/AI/Hashes.py:57
Class
JenkinsHashTT
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
Class
OneAtATimeTT
Chapter 09/code/easyAI/AI/Hashes.py:45
Class
RotateHashTT
Chapter 09/code/easyAI/AI/Hashes.py:27
Class
ShiftAndAddHashTT
Chapter 09/code/easyAI/AI/Hashes.py:35
Class
SimpleHashTT
Surprisingly - very effective for strings
Chapter 09/code/easyAI/AI/Hashes.py:12
Class
TwoPlayersGame
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
Class
XorHashTT
Chapter 09/code/easyAI/AI/Hashes.py:19