GithubHelp home page GithubHelp logo

gothon_project's Introduction

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!

gothon_project's People

Contributors

ugoproto avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.