pull down to refresh

Hi stackers,

I built a simple, self-contained Othello (Reversi) game that runs entirely in the browser using vanilla JS, HTML, and CSS. It requires no heavy frameworks, no trackers, and no server backend.

https://ck121212195.github.io/Othello/

Key Features:

  • Bilingual Support: Smooth, dynamic toggle between English and Japanese.
  • 3 AI Difficulties:
    • Easy: Selects random valid moves.
    • Medium: Uses a standard positional weight matrix (1-ply greedy).
    • Hard: Implements a Minimax search with Alpha-Beta pruning (depth 4) utilizing the positional evaluation matrix. It plays a fairly solid game.
  • Local Leaderboard: Saves high scores directly to your browser's LocalStorage based on victory margins and difficulty multipliers.
  • Lightning Integration: Includes a donation module that communicates with LNbits for real-time invoice generation, WebLN auto-payment, and client-side status polling, alongside a static copyable Lightning Address in the footer.

Because the entire game is packed into a single HTML file, you can open it locally or host it easily on GitHub Pages.

I would love to hear your feedback on the AI's strength or any suggestions for the code. Feel free to grab the code and tweak it!