Page 1 of 1

How do I get the dimentions of the grid?

Posted: Mon Mar 01, 2010 10:14 am
by laz0r
I've tryed searching for something meaningful in the source code, but all I can find is alot of scripting that I don't understand. Is there any other way I can get the dimentions of the grid or any help as to which bit in the source code I should extract from?

Thanks

Posted: Mon Mar 01, 2010 11:09 am
by CodeX
the line like <script>var boardinit = "1110,0011,1102,1100";var level = 46;</script> is all you need, this example has 4 rows and 4 columns:

Code: Select all

rows = boardinit.count(',') + 1
columns = len( boardinit[0 : boardinit.indexof(',')] )
where boardinit is the string extracted from the page (1110,0011,1102,1100 in the example) as for the value, 0 is lit, 1 is dark and 2 is a blocker.

Posted: Mon Mar 01, 2010 1:36 pm
by laz0r
CodeX wrote:the line like <script>var boardinit = "1110,0011,1102,1100";var level = 46;</script> is all you need, this example has 4 rows and 4 columns:

Code: Select all

rows = boardinit.count(',') + 1
columns = len( boardinit[0 : boardinit.indexof(',')] )
where boardinit is the string extracted from the page (1110,0011,1102,1100 in the example) as for the value, 0 is lit, 1 is dark and 2 is a blocker.
Thanks, I don't know how I missed it.

Posted: Sat Mar 06, 2010 12:37 pm
by hackerforce
laz0r wrote:
CodeX wrote:the line like <script>var boardinit = "1110,0011,1102,1100";var level = 46;</script> is all you need, this example has 4 rows and 4 columns:

Code: Select all

rows = boardinit.count(',') + 1
columns = len( boardinit[0 : boardinit.indexof(',')] )
where boardinit is the string extracted from the page (1110,0011,1102,1100 in the example) as for the value, 0 is lit, 1 is dark and 2 is a blocker.

Posted: Sat Mar 06, 2010 12:37 pm
by hackerforce
laz0r wrote:
CodeX wrote:the line like <script>var boardinit = "1110,0011,1102,1100";var level = 46;</script> is all you need, this example has 4 rows and 4 columns:

Code: Select all

rows = boardinit.count(',') + 1
columns = len( boardinit[0 : boardinit.indexof(',')] )
where boardinit is the string extracted from the page (1110,0011,1102,1100 in the example) as for the value, 0 is lit, 1 is dark and 2 is a blocker.

PLEASE HELP

Posted: Mon Apr 26, 2010 10:16 am
by dreamhosting
Can you give ma a java chat script that will work on mobile phones were there is staff and admin iv been looking for such script for more than 5years now