Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

XOShift Game AI

Overview

XOShift is a strategic variant of Tic-Tac-Toe played on a 3x3, 4x4, or 5x5 board.
Instead of placing symbols, players shift pieces from the rim toward the board.
The goal is to align a full row, column, or diagonal.



Installation

pip install pygame

Run

python main.py

Modes:

  • Human vs Human
  • Human vs Agent
  • Agent vs Agent
  • Replay

Structure

main.py         # Game entry
game.py         # Game logic
ui.py           # Graphical interface
agent_utils.py  # Agent helpers
sample_agent.py # Random agent
your_agent.py   # My custom AI

Notes

  • Agents have 2 seconds per move.
  • Replays are saved in replays/.

About

A project for the Artificial Intelligence course, implementing XOShift, a strategic board game with custom AI agents using search algorithms and heuristics.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages