Descartes

Discussion of challenges you have already solved
Post Reply
tails
Posts: 191
Joined: Tue Jun 10, 2008 7:51 pm
Location: Tokyo

Descartes

Post by tails »

The answer of this challenge is broken!

... I mean the word "answer" is broken :D

To bok:
I've made a corrected version of the code.
I believe it doesn't spoil any taste or flavor of this challenge.
So please use this if you like it.

Code: Select all

0106030602040206090308030801080309
0108011204110615061404130113030602
06021b031c03060607060a030b030e060e
0417031603020302010c010c0312021103
1a061806050405060f02100118031a0311
0311010d010d030c060c04040303030601
06010f06100604040406030303020e0310
0306040704160416061401140306060604
04050505060507050f0510050b010a010e
030e0110020e0212021101190119030301
040104020302040104021703170110040f
041b011b03160316011305120413051404
0d060e040d040d060b030b011b011c0115
0115030f060f050a030a010c030d030c01
0d0116021702180618040c060b0619051a
040b050c0518051a05100410050b040b06
1a051a0617061606150114031705160516
0417041b021c0210021003
User avatar
bok
Site Admin
Posts: 24
Joined: Tue Jan 30, 2007 11:49 pm

Post by bok »

Thanks tails,

indeed, I messed up the word ANSWER. Thanks for the fix. We'll update the challenge on the server.
b0bA
Posts: 13
Joined: Tue Dec 30, 2008 4:45 pm

Post by b0bA »

The "AN(S)WER" is broken again :lol:
marvin_t_martian
Posts: 1
Joined: Wed Oct 20, 2010 11:07 pm

Post by marvin_t_martian »

How did you solve this? I used firebug and a little js / canvas.

Code: Select all

var newCanvas = document.createElement('canvas');
newCanvas.height="100";
newCanvas.width="300";
document.body.appendChild(newCanvas);
var ctx = newCanvas.getContext("2d");
pre = $('pre').innerHTML.replace(/\s/g, '').match(/.{1,2}/g);

ctx.beginPath();
for (var i = 0; i < pre.length; i+=4) {
    x = (10 * parseInt(pre[i], 16));
    y = 100 - (10 * parseInt(pre[i+1], 16));
    ctx.moveTo(x, y);
    x =  (10 * parseInt(pre[i+2], 16));
    y = 100 - (10 * parseInt(pre[i+3], 16));
    ctx.lineTo(x, y);
}
ctx.stroke();
[/code]
User avatar
Hippo
Posts: 339
Joined: Sat Feb 01, 2014 12:05 am
Location: Praha 5

Post by Hippo »

I have started numbering the cooreinates on paper in airplane, but it was inconvinient. But I finished it anyways. Pairs were visible, and answer after while.

Btw: anwer again
Post Reply