Skip to content

cajonKA/londonlaw

 
 

Repository files navigation

London Law

The game still has some bugs, but it can be played now!

London Law is an online multiplayer adaptation of the classic Scotland Yard board game (Wikipedia).

This repository is based on a copy of the last known pre-release (0.3pre1) of London Law released by the original author Paul Pelzl and contains additional patches to make this game work with modern software.

I forked this repo to adapt it to current python and lib versions.

Screenshot:

Screenshot

Dependencies:

The code has been tested with the following versions:

  • Python 3.10.9
  • Twisted-22.10.0
  • wxPython-4.2.0

get started:

Setup is not working, run the server and client manually with the commands below

For Ubuntu

sudo apt install python3-wxgtk4.0 (only for the client)
sudo apt install python3-twisted
  • Run Server:
    python3 londonlaw/london-server.py

  • Run Client:
    python3 londonlaw/london-client.py [ip-adress] [player] [password] [gamename]
    (The parameters are optional.)

  • Run AI Player:
    python3 londonlaw/aiclients/detective_simple_launcher.py [AiName] [GameNameToJoin]

For Windows

Check, if you have Python3 installed:
python --version
Python 3.10.9

Install the libraries, you need administration rights:
pip install wxpython (only for the client)
pip install twisted
  • Run Server:
    python londonlaw/london-server.py

  • Run Client:
    python londonlaw/london-client.py [ip-adress] [player] [password] [gamename]
    (The parameters are optional.)

Changes

1.01.0

  • applied fixes to make it run with current python and lib versions

0.303:

  • ported to python3 by Horst Aldebaran alias Meyer (horald)

0.3.0pre2:

  • wxPython3.0 compatibility by Olly Betts
  • Fix for newer python-twisted by Hans de Goede
  • Accept custom data directory by Mr Bones
  • More small fixes by Mario Kicherer

0.3.0pre1 by Paul Pelzl:

  • i18n. Thanks to the efforts of numerous translators, there is at least partial support for 11 different languages.

  • AI clients. Players can request an AI opponent while registering for a game. At the moment there is only a pair of "Rather Dumb" AI clients available, meant as a proof of concept.

  • Admin client. There is a text-mode admin client that can be used to delete games, eject players, etc. It has an online help system, which is hopefully enough to explain the usage.

    The admin client won't work without setting up an admin password. Create a file called ~/.londonlaw/server/config that looks like this:

    [server]
    admin_password: PASSWORD
    game_expiration: 240
    

    Replace PASSWORD with whatever you want. The game expiration is the number of hours after which stale games should be purged.

About

Clone of the famous Scotland Yard board game

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.9%
  • Makefile 0.1%