Hobbit, the true story in python

I’ve recently come accross an original game named Hobbit, the true story. This game was released in 1993 and updated in 2001. The original aspect of the game is that it was written in MS-DOS batch, which is a rather unpleasant script-shell langage.

You can find information about Hobbit, the true story on IFDB and also on Tolkien Gateway.

The game is fun as it is a parody of « The Hobbit« , the book byTolkien. I have made a port of the game in Python, so it can be easily played on any modern computer, regardless of the operating system.

The original MS-DOS version was created by Fredrik Ramsberg and Johan Berntsson and this programme is an unofficial port. I release it as a free software under the GNU General Public Lincense, as published by the Free Software Fondation. I hope the creators of the original game will agree with this, since my port is intended as tribute to their work.

First, you need to download the programme, which consists of a single python file available below:

Once downloaded, extract the python file :

If you are using Linux, make sure the file has execution rights:

Then launch the game:

Execution of the programme requires Python 3.

On Windows, start the game as follows:

Now you can play!

Hobbit the true story is a very small adventure and is quite easy to solve. However, if you get stuck, here are some general hints :

  • You need the torch and the map.
  • You can find both at home, and Gandalf will hand over the map to you if you ask him.
  • You also need the sword to cut Smaug’s cigar. You can find it in the cave north of the Troll’s clearing. They won’t let you pass unless you wait until sunset (they don’t like sunshine).
  • From there, go to the forest north of Rivendell, and use the raft to reeach Smaug’s den. Smaug will happily give you his treasure if you help him with his cigar.
  • Then go back home, and the adventure is complete.

Have fun!

Un jeu d’aventure bien aligné ou justifié

Il est important de bien soigner la présentation de vos jeux d’aventures. Si vous n’y prenez garde, vous risquez de retrouver cela :

Une présentation bof, qui n’incite pas à poursuivre l’aventure.

Pas très lisible, n’est-ce pas ? (on peut même dire que c’est moche). Les mots sont coupés au delà de la 40ème colonne, sans tenir compte des règles usuelles de présentations des documents.

Dans cet article, nous allons voir comment afficher un texte avec un alignement à gauche, sans couper les mots, ou un alignement justifié. Avec une subroutine en BASIC !

Continuer la lecture de « Un jeu d’aventure bien aligné ou justifié »

Traducteur d’instructions graphiques du langage BASIC

Dans les années 80, le langage BASIC a donné lieu à d’innombrables dialectes, chaque machine étant livrée avec son propre « BASIC » et ses particularités. Les instructions les plus courantes sont en général standardisées (PRINT, INPUT, LET, IF…THEN, FOR…NEXT, GOTO, GOSUB) mais il en va tout autrement pour les instructions graphiques. Les modes graphiques sont également très variables d’une machine à l’autre, que ce soit le nombre de couleurs ou la définition de l’image.

Continuer la lecture de « Traducteur d’instructions graphiques du langage BASIC »

Extraventure : faites votre propre aventure dont vous être le héros

Ce programme écrit en Python permet de créer son propre jeu d’aventure à la façon des livres-jeu « dont vous êtes le héros » qui étaient si populaires fin des années 80s. L’idée de créer ce programme m’est venue en lisant le numéro 31 du magazine Jeux et Stratégie, qui comporte un article d’initiation au jeu d’aventure, Le mystère de la statue maudite (voir la suite de cet article). J’ai eu envie d’en faire une version informatique (34 ans après la publication) puis eu l’idée de faire un programme générique de gestion de jeu d’aventure simple.

Continuer la lecture de « Extraventure : faites votre propre aventure dont vous être le héros »