Pyrates (game) Code
TUI games designed as a classroom aid for teaching localization.
Brought to you by:
hubkow
| File | Date | Author | Commit |
|---|---|---|---|
| icons | 2026-02-02 |
|
[f4e1a1] "Decked!" icons and interface improvements. |
| locales | 2026-02-20 |
|
[74fb7a] Pre-release cleanups. |
| modules | 2026-02-20 |
|
[74fb7a] Pre-release cleanups. |
| adrift.py | 2026-02-19 |
|
[bc9021] Centralized ending of the game and clearing adv... |
| decked.py | 2026-02-20 |
|
[5864ee] Fixed pirate's stamina after recovering from a ... |
| gpl3-license.txt | 2021-12-22 |
|
[3d3acf] Various cleanups: |
| options.ini | 2026-02-20 |
|
[74fb7a] Pre-release cleanups. |
| pyrates.py | 2026-02-20 |
|
[b052d2] Events related to ships placed in a seaprate mo... |
| readme.md | 2026-02-18 |
|
[bee8eb] Squashed commit of the following: |
| tavern.py | 5 days ago |
|
[831dc6] The baker prevents pies from going bad. |
| tortuga.py | 2026-02-03 |
|
[53f81c] Improved distribution of sharks in "Adrift" and... |
Website: https://pyrates-game.sourceforge.net/
Contact: hubkow@gmail.com
Locales: https://hosted.weblate.org/projects/pyrates/
"Pyrates" is a suite of TUI computer games designed as a classroom aid for teaching software localization with gettext.
The games require at least Python 3.8.
pyrates.py, tavern.py, adrift.py, or tortuga.py.options.ini to avoid alignment issues.python3 --version.pyrates folder and type python3 pyrates.py (or the respective filename).Passing a two-letter ISO language code launches the game with that locale if available (e.g. python3 pyrates.py es for Spanish).
Enter these codes to test translations at specific locations:
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.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.bm: Read Captain Cofresí's misdirection message.be: Read Captain Cofresí's encrypted island names.a: Start the arithmometer puzzle.d: Fix broken distillery.pk Play poker.sh Play pirate shuffle.tr Measure take-away rum.rd Fix rum dispenser (! for success).! (choose direction of voyage).! lost game message.!! won game message.