Current Level

Post Reply
User avatar
Flit
Posts: 8
Joined: Tue Dec 09, 2008 5:29 pm

Current Level

Post by Flit »

I'm wondering it it would be possible to put the current level somewhere in the source. It would make it a bit easier then when trying out different code.

Mostly just so the code can spot the crossover from single digit to double digit at level 242. Changing the earlier levels to use two digits would also have the same effect.

Cheers.
DaymItzJack
Posts: 106
Joined: Thu Oct 29, 2009 9:21 pm

Post by DaymItzJack »

<br><br><div style="clear:both"><form action=index.php method=get><input type="text" name="gotolevel" size="3" value="4" />

value="4" is the level that you can advance to furthest.
User avatar
Flit
Posts: 8
Joined: Tue Dec 09, 2008 5:29 pm

Post by Flit »

Hi DaymItzJack, thanks for the reply.

I realise that the highest level is shown, what I was refering to was the current level.

For example, if I'm up to level 100 but go back to level 50 the text box will still show 100. There isn't any way to obtain the level of the current puzzle from the source.

Cheers.
DaymItzJack
Posts: 106
Joined: Thu Oct 29, 2009 9:21 pm

Post by DaymItzJack »

Flit wrote:Hi DaymItzJack, thanks for the reply.

I realise that the highest level is shown, what I was refering to was the current level.

For example, if I'm up to level 100 but go back to level 50 the text box will still show 100. There isn't any way to obtain the level of the current puzzle from the source.

Cheers.
It may be a stupid work-around but for now you can check when the data gets over a certain length. I haven't gotten far (at all yet) but I'd have to assume the data for the last single digit is half as long as the data for the first double digit.
User avatar
Flit
Posts: 8
Joined: Tue Dec 09, 2008 5:29 pm

Post by Flit »

DaymItzJack that is a great idea. Like so many good ideas it's obvious once someone points it out to me. :)

It doesn't help with knowing the exact level, but it does mean I won't need to have two versions of code, one for low levels, one for high.

With common sense like that I'm sure you'll be zooming through the levels pretty quickly.

Cheers.
DaymItzJack
Posts: 106
Joined: Thu Oct 29, 2009 9:21 pm

Post by DaymItzJack »

Flit wrote:DaymItzJack that is a great idea. Like so many good ideas it's obvious once someone points it out to me. :)

It doesn't help with knowing the exact level, but it does mean I won't need to have two versions of code, one for low levels, one for high.

With common sense like that I'm sure you'll be zooming through the levels pretty quickly.

Cheers.
I've already zoomed the past two months. I took a break and now I'm totally out of the game because I don't want to do it anymore ;p. However once I get spiral bits done I'll have more challenges that I can solve.
Zeta
Posts: 62
Joined: Thu Apr 16, 2009 3:37 pm

Post by Zeta »

attribute_length = len(board) / x / y / 2
User avatar
Flit
Posts: 8
Joined: Tue Dec 09, 2008 5:29 pm

Post by Flit »

Zeta wrote:attribute_length = len(board) / x / y / 2
Me = dunce. :roll:
User avatar
Hippo
Posts: 339
Joined: Sat Feb 01, 2014 12:05 am
Location: Praha 5

Post by Hippo »

Of course the atribute length trick works well, but having the current level on the page would help anyways.
Post Reply