Git Product home page Git Product logo

turtleprogramming's Introduction

Turtle programming sandbox

Setup and usage

Install dependencies:

npm install

Run server:

gulp dev

This starts a server on port 8080. The following URL parameters are supported:

  • program: Loads a program stored in ./sketches
  • language: Any of the supported languages
  • autorun: Autoruns the program

http://localhost:8080/?program=clones&language=ruby

Screenshots

Supported languages

  • JavaScipt (native, best support)
  • CoffeeScript (almost native, next-best support)
  • Ruby (good support)
  • Python (decent support)

Libraries versions

Known caveats and bugs

  • Also for Ruby, the Opal workaround is required for some browsers
  • After upgrading to p5.js 0.5.7, holding the key down does not trigger repeated calls of keyTyped()
  • Language does not change after selecting from the program list
  • Program does not load for some browsers

To Program

  • bulid reference side bar
  • build module side bar
  • bootstrap for prettify layout
  • React(?) future future

To Address

-Multiple languages. python (count lines for limits on goals) -Goals: Conditionals Loops (simple AI maze follower)

String processing - hangman

Games: for future after trivial tasks. Cheatsheet for syntax

Other things: string processing, recursion As modules, continue lower amount of code provided. Open notes, harder from that.

Module 1: Turtle programming. Do basic tasks, draw things, get sense for dot operation, and functions, arithmetic, or things.

Module 2: Conditionals: Age program Loops: simple AI Maze follower Arrays: Function writing:

Module 3: Days of the week problem. n days after dd/mm/year what day of week? Is this year a leap year? Basic logic Draw basic competition problems.

Module 4: Classes! Good software engineering practices, no repeat code, good pseudocode. Extend turtle, and make space ship.

Module 5: Tic-tac-toe

Module 6: -Dodging crap from sky game

Module 7: -Tank Game

Resources

http://codetheory.in/creating-the-environment-to-write-code-and-render-in-realtime/ https://forresto.github.io/turtle-svg/ http://berniepope.id.au/html/js-turtle/turtle.html (sketch.js inspired by this) https://ycatch.github.io/p5.turtle.js/ Python turtle: https://docs.python.org/2/library/turtle.html https://michael0x2a.com/blog/turtle-examples https://github.com/peterc/trtl/tree/master/examples http://leahbuechley.com/Turtle/index.html https://www.turtle.ox.ac.uk/online/ (basic, pascal, and python. has really good examples)

TurtleScript? https://github.com/cscott/TurtleScript

Cycloids? http://www.di.unito.it/~barbara/MicRobot/AttiEuroLogo2007/proceedings/W-Foltynowicz.pdf

Ramda two-pane editor

Bootstrap + Ace editor

turtleprogramming's People

Contributors

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