Skip to content

OnegaiMuscle/Othello

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Othello Game

🚀 Try It!

https://onegaimuscle.github.io/Othello/

An elegant, responsive implementation of the classic Othello (Reversi) game with a competitive AI.

🎮 Features

  • Intuitive graphical interface with dynamic game board
  • Multi-level AI difficulty using minimax algorithm with alpha-beta pruning
  • Responsive design that adapts to desktop and mobile screens
  • Visual indicators showing valid moves (optional)
  • Game statistics displaying real-time score
  • Customization to choose who plays first

🎯 How to Play

  1. Objective: Finish the game with more pieces of your color than your opponent
  2. Taking turns: Place a piece on a valid square (indicated by a light circle if hints are enabled)
  3. Capturing: All opponent pieces between your new piece and another of your pieces are flipped
  4. End of game: The game ends when neither player can make a move

🛠️ Technologies Used

  • HTML5 for structure
  • CSS3 for styling and animations
  • Vanilla JavaScript (ES6+) for Game logic and AI
  • Service Worker for playing offline

📱 Compatibility

  • Works on all modern browsers
  • Responsive design for smartphones, tablets, and computers
  • Interface optimized for touch screens and mouse

🧠 Artificial Intelligence

The AI uses a combination of advanced techniques:

  • Minimax algorithm to explore possible moves
  • Alpha-beta pruning to optimize performance
  • Evaluation function based on piece position and Othello strategies
  • Multiple difficulty levels to accommodate all players

Developed with ❤️ by TRAN Duc Tai