# Converting coding challenge 'Self-avoiding walk backtracing' from p5.js to Processing (Java)

**URL:** https://discourse.processing.org/t/converting-coding-challenge-self-avoiding-walk-backtracing-from-p5-js-to-processing-java/35047
**Category:** Coding Questions
**Created:** [February 8, 2022, 7:34pm UTC](https://discourse.processing.org/t/converting-coding-challenge-self-avoiding-walk-backtracing-from-p5-js-to-processing-java/35047 "2022-02-08T19:34:23Z")
**Posts on this page:** 1
**Showing post:** 19

<div class="post-metadata">

### Author: ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)
#### Post date: [March 10, 2022, 12:57am UTC](https://discourse.processing.org/t/converting-coding-challenge-self-avoiding-walk-backtracing-from-p5-js-to-processing-java/35047/19 "2022-03-10T00:57:21Z")

</div>

- I’m back w/ another “Self Avoiding Walk II” conversion.
- This time I’m using the [CoffeeScript](https://coffeescript.org/) language which directly transpiles to JavaScript.
- Processing 2 used to have a [CoffeeScript Mode](https://github.com/fjenett/coffeescript-mode-processing) a long time ago and I’ve ended up learning it.
- When I later decided to learn [Python Mode](https://py.processing.org/reference/) to help folks here I’ve relied on my previous [CoffeeScript](https://coffeescript.org/) knowledge b/c they have similar syntax.
- The old [CoffeeScript Mode](https://github.com/fjenett/coffeescript-mode-processing) relied on the [Pjs](https://gotoloop.github.io/processing-js.github.io/reference/) library in order to run its transpiled sketch on the web.
- Which by the way is the same lib that transpiles a [Java Mode](https://processing.org/reference/) sketch to JS.
- But I also wanted to use [p5js](https://p5js.org/reference/) & even [q5js](https://q5xjs.netlify.app/) to run my latest conversion.
- So why not make the new [CoffeeScript](https://coffeescript.org/) sketch compatible w/ all those 3 libraries?
- That’s exactly what I did! Each time the sketch is refreshed it randomly picks 1 of the 3 libs:

https://glitch.com/embed/#!/self-avoiding-walk-ii-coffeescript?path=app/sketch.coffee&previewSize=0&sidebarCollapsed=true

[Click here](https://api.glitch.com/project/download/?projectId=f19e91c7-6e32-4fed-9e54-6d2cff00e48b&authorization=05ff34d2-6010-454a-9fd0-143b25304ae9) to download the full app project.  
Also go to link below to view it fullscreen:

- [https://Self-Avoiding-Walk-II-CoffeeScript.Glitch.me](https://Self-Avoiding-Walk-II-CoffeeScript.Glitch.me)

---

_[View the full topic](https://discourse.processing.org/t/converting-coding-challenge-self-avoiding-walk-backtracing-from-p5-js-to-processing-java/35047)._
