Menu

Tree [831dc6] master /
 History

HTTPS access


File Date Author Commit
 icons 2026-02-02 Hubert Kowalewski Hubert Kowalewski [f4e1a1] "Decked!" icons and interface improvements.
 locales 2026-02-20 Hubert Kowalewski Hubert Kowalewski [74fb7a] Pre-release cleanups.
 modules 2026-02-20 Hubert Kowalewski Hubert Kowalewski [74fb7a] Pre-release cleanups.
 adrift.py 2026-02-19 Hubert Kowalewski Hubert Kowalewski [bc9021] Centralized ending of the game and clearing adv...
 decked.py 2026-02-20 Hubert Kowalewski Hubert Kowalewski [5864ee] Fixed pirate's stamina after recovering from a ...
 gpl3-license.txt 2021-12-22 hubkow hubkow [3d3acf] Various cleanups:
 options.ini 2026-02-20 Hubert Kowalewski Hubert Kowalewski [74fb7a] Pre-release cleanups.
 pyrates.py 2026-02-20 Hubert Kowalewski Hubert Kowalewski [b052d2] Events related to ships placed in a seaprate mo...
 readme.md 2026-02-18 Hubert Kowalewski Hubert Kowalewski [bee8eb] Squashed commit of the following:
 tavern.py 5 days ago Hubert Kowalewski Hubert Kowalewski [831dc6] The baker prevents pies from going bad.
 tortuga.py 2026-02-03 Hubert Kowalewski Hubert Kowalewski [53f81c] Improved distribution of sharks in "Adrift" and...

Read Me

Pyrates

Website: https://pyrates-game.sourceforge.net/

Contact: hubkow@gmail.com

Locales: https://hosted.weblate.org/projects/pyrates/

Introduction

"Pyrates" is a suite of TUI computer games designed as a classroom aid for teaching software localization with gettext.

  • Pyrates: An exploration game peppered with logical puzzles.
  • The Tavern: A management game in which the player runs a tavern on an island featured in "Pyrates."
  • Adrift: A survival game where the player tries to survive on a tiny raft and convert it into a boat.
  • Tortuga Tycoon: A simple farming game about running a plantation for a rum distillery.
  • Decked! A mini-rouguelike taking place on a pirate ship; a lot of boxing included.

How to launch the games

The games require at least Python 3.8.

Windows and MacOS

  • Install IDLE from python.org.
  • Double-click the file pyrates.py, tavern.py, adrift.py, or tortuga.py.
  • Alternatively, open the files in the IDLE code editor and hit F5.
    • Note: IDLE does not support colors, so you may want to disable them in options.ini to avoid alignment issues.
  • To use the terminal in Windows 11, right-click in the folder and choose "Open in Terminal".
  • In Windows 10, hold Shift while right-clicking and choose "Open PowerShell window here".

Linux and Android

  • Linux: Check if Python 3 is installed using python3 --version.
  • Open the terminal in the pyrates folder and type python3 pyrates.py (or the respective filename).
  • Android: Open the game in Termux after installing Python 3, using the same commands as in Linux.

Languages

Passing a two-letter ISO language code launches the game with that locale if available (e.g. python3 pyrates.py es for Spanish).

Quick access to aocations (for testing translations)

Enter these codes to test translations at specific locations:

"Pyrates" - islands

  • t: Visit a treasure island with colorful chests (! reveals a chest).
  • ta: Treasure island with an adventurer (! reveals a chest).
  • tc: Treasure island with a pirate (! reveals a note).
  • dt: Visit devils' triangle.
  • ri: Visit island with abandoned distillery (! reveals an ingredient).
  • p: Visit Pirates' island.
  • rh: Start the rum heist.
  • kh: Start the keyring heist.
  • o: Visit a trading outpost.
  • tm: Town island with the drunk mapmaker (! finds the mapmaker).
  • tt: Town island with a thief (! finds the thief).
  • td: Town island with a broken distillery.
  • ti: Town island with the alderman collection information.

"Pyrates" - encounters

  • ms: Visit a merchant ship.
  • rf: Sail through a coral reef.
  • rc: Sail through a coral reef with three pirate ships.
  • pd: Get captured by pirates (Prisoner's Dilemma).
  • sh: Get captured by pirates (Pirate Shuffle).
  • r: Rescue an adventurer from a raft.

"Pyrates" - other

  • bm: Read Captain Cofresí's misdirection message.
  • be: Read Captain Cofresí's encrypted island names.
  • a: Start the arithmometer puzzle.
  • d: Fix broken distillery.

"The Tavern"

  • pk Play poker.
  • sh Play pirate shuffle.
  • tr Measure take-away rum.
  • rd Fix rum dispenser (! for success).

"Adrift"

  • ! (choose direction of voyage).

"Tortuga Tycoon"

  • ! lost game message.
  • !! won game message.
MongoDB Logo MongoDB