Skip to content

ugoproto/gothon_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 

Repository files navigation

gothon_project

A little python app.

Download the app (see Use, below).

Based on Exercise 43, from Learn Python the Hard Way by Zed Shaw, with a couple of bells and whistles. First, the same app runs in either French or English. Second, we added a final interactive fight. Interactive it is as the rest of the story. A tiny story that can be completed in a few minutes, after some trials and errors. Because an error leads to a fatal epilogue... With a little patience, anyone can successfully complete the story. Although there are some code-breaking challenges, since this is a proof-of-concept, we provide the keys. However, anyone can choose to test the game.

Clone

  • Project name: gothon_project (the parent directory).
  • The project runs on Python 2. It could easily be migrated to Python 3.
  • Clone the project; on your PC, the project directory must be organized as follow.
└───gothon_project
    ├───bin
    └───gothonmap
  • The 'bin' subdir contains the script engine.py. The engine refers to a map or story, in the 'gothonmap' subdir to generate an interactive story. The 'tests' subdir is for testing the scripts.
  • In your terminal, at the 'gothon_project' level, launch the app with python2 bin/engine.py.
  • If the Python script fails to launch the website, you might have a path problem; you must set the path for the project to execute.
  • For Linux/Mac OS X users, please execute in the terminal:
export PYTHONPATH=$PYTHONPATH:.
  • For Windows users, please execute in the shell:
$env:PYTHONPATH = "$env:PYTHONPATH;."
  • Or set the path with Windows Advanced Systeme Parameters (consult the documentation for that matter).
  • Then relaunch the script; python2 bin/engine.py works on Linux/MacOSX.
  • For Windows, you might need to try py -2 bin/engine.py or py -2.7 bin/engine.py.
  • Consult the Python documentation otherwise.
  • Have fun!

About

Out-of-date and sidelined. Demo.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages