Skip to content

hexparrot/thudgame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f4b45a2 · Jan 14, 2023

History

70 Commits
Apr 26, 2017
May 7, 2014
Jan 14, 2023
Jan 14, 2023
Jan 14, 2023
Oct 24, 2014
May 7, 2014
May 7, 2014
Oct 24, 2014
May 7, 2014
Jan 14, 2023
Apr 26, 2017
May 7, 2014
Sep 30, 2014

Repository files navigation

This is an implementation of Thud!, a boardgame by Trevor Truran, first published in 2002, inspired by the Discworld novels.

It aims to offer both backwards compatibility with the existing Thud! application while adding new features such as drag-n-drop interface, computer opponents (AI) and support for all available rulesets including Koom Valley Thud!.

This app runs on Python3 and requires tkinter. Often, Linux distros provide this as an installable package, e.g., python3-tkinter.

Run the game interactively: python3 gui.py

Alternatively, console.py can be used to select the next move based on provided gamestate and does not use the GUI. This allows for easy access to AI opponent choices across different platforms. Save an in-progress game from the GUI to see expected formatting and game notation.

EXAMPLES:

dF1,dG1,dJ1,dK1,dE2,dL2,dD3,dM3,dC4,dN4,dB5,dO5,dA6,dP6,dA7,dP7,dA9,dP9,dA10,dP10,dB11,dO11,dC12,dN12,dD13,dM13,dE14,dL14,dF15,dG15,dJ15,dK15,TG7,TH7,TJ7,TG8,TJ8,TG9,TH9,TJ9,RH8
dO11-O9

$ python3 console.py next_move < start.thud
INFO: TROLL
INFO: turn: 0
INFO: # threats: 0
INFO: # setups: 24
INFO:   T: 32 d: 32

TG7-F7

About

A Python Implementation of the Thud! boardgame

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published