GithubHelp home page GithubHelp logo

edgarjcfn / pylearn Goto Github PK

View Code? Open in Web Editor NEW
12.0 0.0 0.0 43.31 MB

[currently a prototype] A browser-based game to learn programming.

Home Page: http://edgarjcfn.github.io/pylearn

TypeScript 42.41% JavaScript 57.59%

pylearn's Introduction

pylearn

A game to learn python by typing into a browser-based interpreter

this is a work in progress

Current version uses

Installing

  1. Install Node JS

  2. Checkout this repository with

    git clone https://github.com/edgarjcfn/pylearn.git

  3. At the repository folder, install npm dependencies

    npm install

  4. Still at the repository folder, install bower dependencies

    bower install

  5. Run the local development server with

    grunt dev

After that, point your browser to http://localhost:8081 and you're ready to go

Building levels

  • See the files at pylearn/dev/game/assets/levels
  • Include your own files that define levels
  • Include your level names (in order) at the top of pylearn/dev/game/states/preloader.ts
  • Reload your browser and play your levels.

At the moment the only objective type is to capture all treasure chests with the char.pickUp() python function. In the future I intend to add more objective types

Contributing

I'm gladly accepting contributions both in code and in art/design. Send Pull Requests!

TODO

  • Migrate to Typescript
  • Implement Level Loading
  • Implement Level Progression (instructions, win/lose)
  • Load supporting python file with initial code for each level
  • Add a Restart (Reset) button
  • Make page look nicer
  • Make game look nicer
  • Add more objective types

pylearn's People

Contributors

edgarjcfn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.