haive.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¶
- haive.games.among_us
- haive.games.api
- haive.games.base
- haive.games.base_v2
- haive.games.battleship
- haive.games.benchmark
- haive.games.board
- haive.games.cards
- haive.games.checkers
- haive.games.chess
- haive.games.clue
- haive.games.common
- haive.games.connect4
- haive.games.core
- haive.games.debate
- haive.games.debate_v2
- haive.games.dominoes
- haive.games.example
- haive.games.fox_and_geese
- haive.games.framework
- haive.games.go
- haive.games.hold_em
- haive.games.llm_config_factory
- haive.games.mafia
- haive.games.mancala
- haive.games.mastermind
- haive.games.monopoly
- haive.games.multi_player
- haive.games.nim
- haive.games.poker
- haive.games.reversi
- haive.games.risk
- haive.games.single_player
- haive.games.tic_tac_toe
- haive.games.utils