PyReversi

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Software Libraries (https://www.hpmuseum.org/forum/forum-10.html)
+--- Forum: HP Prime Software Library (https://www.hpmuseum.org/forum/forum-15.html)
+--- Thread: PyReversi (/thread-24701.html)



PyReversi - YvesKn - 2026-02-14 07:18, edited 2026-03-24 02:45

PyReversi is an Othello-Reversi program for the HP Prime written in HPPL for the UI and in Python for the engine.

PyReversi manages 4 phases of the game:
  1.         The opening with more than 400 lines in the opening library
  2.         The midgame with an evaluation function based on 8 different factors
  3.         The WDL (Win-Draw-Loss) phase where the program searches for a winning line but does not care about the extent of the victory
  4.        The search for the best final score

Five menu buttons allow you to :
  •         New:  start a new game.
  •         Option: choose between 4 different game levels and decide to show/not show the possible moves and use/don’t use the opening library. Your preferences are saved in an exported list ReversiOpt.
  •         Back: come back to the last move of the player
  •         Swap : change the colours during the game. Also allows to let the program start the game
  •         End: Exits the program

Edit : 24/03/2026 Adapting program for digit grouping (Thanks Piotr)