games¶
Haive Games - Comprehensive game environment collection.
This package provides a rich ecosystem of game implementations designed for AI agent training, research, and entertainment. Games range from classic board games to card games to strategy games.
- Game Categories:
Board Games: Chess, Checkers, Go, Reversi, Connect4, Tic-Tac-Toe
Card Games: Poker, Hold’em, Blackjack, UNO
Strategy Games: Risk, Monopoly, Debate, Mafia
Puzzle Games: Mancala, Mastermind, Nim, Sudoku, Wordle
Social Games: Among Us, Debate, Clue
- Each game includes:
AI agent implementations with configurable difficulty
State management and game rules enforcement
Rich UI components for visualization
Tournament and benchmarking capabilities
Extensible configuration systems
Examples
Quick tic-tac-toe game:
from haive.games.tic_tac_toe import TicTacToeAgent, TicTacToeState
agent = TicTacToeAgent()
game_state = TicTacToeState()
result = agent.play(game_state)
Chess with custom agents:
from haive.games.chess import ChessAgent, ChessState
white_agent = ChessAgent(name="white", difficulty="expert")
black_agent = ChessAgent(name="black", difficulty="intermediate")
Multi-player poker:
from haive.games.poker import PokerAgent, PokerState
agents = [PokerAgent(f"player_{i}") for i in range(4)]
game = PokerState(players=agents)
All games support both human and AI players, with extensive configuration options for gameplay variants, AI behavior, and visualization preferences.
Submodules¶
- games.among_us
- games.api
- games.base
- games.base_v2
- games.battleship
- games.benchmark
- games.board
- games.cards
- games.checkers
- games.chess
- games.clue
- games.common
- games.connect4
- games.core
- games.debate
- games.debate_v2
- games.dominoes
- games.example
- games.fox_and_geese
- games.framework
- games.go
- games.hold_em
- games.llm_config_factory
- games.mafia
- games.mancala
- games.mastermind
- games.monopoly
- games.multi_player
- games.nim
- games.poker
- games.reversi
- games.risk
- games.single_player
- games.tic_tac_toe
- games.utils