jycjycPKU/Othello-Game-Bot
Othello Nightfall
Hugging Face Static Space
The browser version lives in web/. It runs entirely in the visitor's browser: there is no Gradio server, Python runtime, account, or saved-game storage.
Previous project notes
This is a bot of Othello with a UI I can play.
Othello, also called Reversi, is a two-player strategy board game played on an 8×8 grid.Players use black and white discs. On each turn, you place a disc so that it traps one or more opponent discs in a straight line—horizontal, vertical, or diagonal—between your new disc and another disc of your color. The trapped discs flip to your color. The game ends when neither player can move or the board is full. The player with the most discs showing their color wins.
I wrote a bot with an interface of terminal interaction using cpp in my first year learning programming, when I use min-max search algorithm to find the optimal choice at each step. These days, I have a whim to rewrite it with Python and realize a better and more friendly interactive mode, which can help me review search algorithms and also practice my vibe coding ability.
<!-- You can try the bot in this [Web]() and win it easily! :)-->
If you want to play locally, clone this repo and run ``python main.py`` directly in a simply python environment and need no extra dependencies.
