Skip to content

Latest commit

 

History

412 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Programming Project

  • reports/preliminary: LaTeX code fo the preliminary report.
  • reports/final: LaTeX code of the final report.

Othello Game

Python based implementation of the game of Othello (also known as Reversi)

Prerequisites

System Dependencies

Depending on your Linux distribution, install the required GTK4 / PyGObject dependencies:

Debian/Ubuntu:

apt install python3-gi python3-gi-cairo gir1.2-gtk-4.0

Fedora:

sudo dnf install python3-gobject gtk4

Arch Linux:

sudo pacman -S python-gobject gtk4

openSUSE:

sudo zypper install python3-gobject python3-gobject-Gdk typelib-1_0-Gtk-4_0 libgtk-4-1

Installation

  1. Clone the repository:
git clone git@gitlab.emi.u-bordeaux.fr:pdp-2025/othello-1.git
  1. Navigate to the project directory:
cd othello-1
  1. Create and activate a virtual environment:
python -m venv venv
. venv/bin/activate
  1. Install the game:
python -m pip install ./othello

Running the Game

Launch the game using either:

python -m othello
# or
othello

If you are using zsh/autocd etc. like me, prefer the python -m othello version.

Troubleshooting

If you encounter issues on Wayland, set the XKB configuration path:

export XKB_CONFIG_ROOT=/usr/share/X11/xkb/rules/

For additional PyGObject setup information, visit: https://pygobject.gnome.org/getting_started.html

About

Uni Project | February - May 2025 | M. Duval, R. Heuret, L. Marques, G. Tardiou | Programming Project, E. Fleury | University of Bordeaux

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages