TNoodle on IOS

153 views
Skip to first unread message

Jeremy Fleischman

unread,
Sep 29, 2013, 10:46:33 PM9/29/13
to wca-sc...@googlegroups.com, Dan Cohen
(following Stefan's example and starting up a separate thread for a new idea)

Dan,

What would it take to get tnoodle scrambles running on IOS? Would it be possible to get the existing javascript generation and scrambling code to run in a native app?

-Jeremy

Dan Cohen

unread,
Sep 29, 2013, 11:11:40 PM9/29/13
to wca-sc...@googlegroups.com, Dan Cohen
Well I've thought about trying to run a js scrambler within a WebKit view and get data to and from the native app, but I haven't actually gotten to too much testing.  The other option is trying to get the java version translated into Obj-C/++ somehow, but I'm not aware of any utility that can accomplish that.  

I should have probably mentioned this in the introduction thread, but I haven't really had much time to code recently at all.  I do plan on attempting to take a stab at a rewrite of my iOS timer coming up as I've gotten some time on my hands, so I can probably do some testing to see what works.

-Dan

Lucas Garron

unread,
Sep 29, 2013, 11:17:36 PM9/29/13
to Dan Cohen, wca-sc...@googlegroups.com, Dan Cohen

»Lucas Garron


--
You received this message because you are subscribed to the Google Groups "WCA Scrambler Team" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wca-scramble...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Jeremy Fleischman

unread,
Sep 29, 2013, 11:18:32 PM9/29/13
to Dan Cohen, wca-sc...@googlegroups.com, Dan Cohen

Being able to reuse the JavaScript code would be really nice. I am sure there's something out there we could get working that would port java to c++ or objective c, but I bet it would be a whole bunch of work to get the drawing code ported too. Let me know if you give the WebKit view a shot, and if you need any help generating the JavaScript version of tnoodle.

--

Jeremy Fleischman

unread,
Sep 29, 2013, 11:21:38 PM9/29/13
to Lucas Garron, Dan Cohen, Dan Cohen, wca-sc...@googlegroups.com

I didn't know about this project. Do they have nice, high quality scramblers for all puzzles? Even if they do, I still like the idea of people only having to write a tnoodle scrambler, and then be able to use it anywhere.

Lucas Garron

unread,
Sep 29, 2013, 11:22:08 PM9/29/13
to Jeremy Fleischman, Dan Cohen, wca-sc...@googlegroups.com, Dan Cohen
The WebKit view might still be running a restricted version of Nitro (or whatever engine they use on iOS web views now).

I think the "right" way to do portability these days is C/C++, emscriptened to WebKit for portability where rewriting in Javascript is impractical.

»Lucas Garron

Jeremy Fleischman

unread,
Sep 29, 2013, 11:31:28 PM9/29/13
to Lucas Garron, Dan Cohen, wca-sc...@googlegroups.com


On Sep 29, 2013 8:22 PM, "Lucas Garron" <crease...@gmail.com> wrote:
>
> The WebKit view might still be running a restricted version of Nitro (or whatever engine they use on iOS web views now).

Oh bummer. I guess we will see what Dan discovers.

>
> I think the "right" way to do portability these days is C/C++, emscriptened to WebKit for portability where rewriting in Javascript is impractical.

I know you've had good luck with emscript, but I don't see how it could fit into the tnoodle code base, as its written in Java, not C. Did you have an idea there? also, how would the drawing code fit into the picture?

Lucas Garron

unread,
Sep 29, 2013, 11:34:24 PM9/29/13
to Jeremy Fleischman, Dan Cohen, wca-sc...@googlegroups.com
That was not a suggestion for practice. Just an observation about where things are going.

»Lucas Garron

Stefan Pochmann

unread,
Sep 30, 2013, 7:29:37 AM9/30/13
to Jeremy Fleischman, Lucas Garron, Dan Cohen, wca-sc...@googlegroups.com
On Mon, Sep 30, 2013 at 5:31 AM, Jeremy Fleischman <jeremyfl...@gmail.com> wrote:

I know you've had good luck with emscript

It's "emscripten" (just saying so others don't have to repeat my futile googling for "emscript" :-)
Reply all
Reply to author
Forward
0 new messages