|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
Maps & Tools
Here, a sample map I generated, for reflexion purpose. 22 rooms, and I solve it (by hand) with a cost of: 21*10 + 23*4 = 302
Generating a script to do the same will not be easy :p ![]() and a java applet to play the game http://www.cigosoft.org/pub/corridors.php?fps=60&w=600&h=450&rooms=45&blocks=500&seed=1 |
|
#2
|
|||
|
|||
|
RE: Maps & Tools
Question, 21*10 + 23*4, how can the part that is *4 have a higher count? Should it not be 44*10 + 23*4?
-Jeff |
|
#3
|
|||
|
|||
|
RE: Maps & Tools
You're right, I made a mistake; the right count is: 21*10 + 26*4 = 314
To make things clear, what is the cost of that: 00000 01010 00200 00100 00000 I think it's: 1*10 + 2*4 = 18 Am I wrong ? |
|
#4
|
|||
|
|||
|
RE: Maps & Tools
yes, that is correct..
|
|
#5
|
|||
|
|||
|
RE: Maps & Tools
Confusion:
Quote:
Shouldn't this be 3*10+2*4?! There are three corridors two of which are diagonals? -Jeff |
|
#6
|
|||
|
|||
|
RE: Maps & Tools
there's one corridor block only, so 1*10+2*4.
grrr.. i have problems saving the map to local file :/ |
|
#7
|
|||
|
|||
|
RE: Maps & Tools
Quote:
probably, a problem with the permission file; if you still have problems, pm me |
|
#8
|
|||
|
|||
|
RE: Maps & Tools
Diagonals are still corridors, just special variants thereof, and therefore MORE expensive, not less. The cost of moving in a diagonal should be approximately sqrt(2) times as expensive as a straight line!!
-Jeff |
|
#9
|
|||
|
|||
|
RE: RE: Maps & Tools
Quote:
ok, solved it, files are being saved to the desktop not to the location I specify. just couldn't find it |
|
#10
|
|||
|
|||
|
RE: Maps & Tools
yes, I've just corrected it, with few other bugs ;)
|
|
#11
|
||||
|
||||
|
RE: Maps & Tools
Quote:
Quote:
1=room 2=corridor |
|
#12
|
|||
|
|||
|
RE: RE: Maps & Tools
Quote:
exactly! |
|
#13
|
|||
|
|||
|
RE: Maps & Tools
That's really not so easy to write the process of manual connection to php code.
My script connects all rooms with 38*10+49*4 = 576, but it takes 2 minutes :-( I think I have to fine-tune some things. @DDY: really cool applet. Could you update your online applet to the new map size ? In the thread "offical update" zombie wrote that the new maximal map size is 50x50 with a maximum number of rooms of 50. |
|
#14
|
|||
|
|||
|
RE: Maps & Tools
Is there any volunteer who could convert this excelent map generator of the corridors Java code to php code ?
|
|
#15
|
|||
|
|||
|
RE: Maps & Tools
Zombie, thank you... I thought I was losing my mind.
An example of why the diagonals have to be more expensive: This: 0000000000 0000001000 0000010122 0000100022 0001000000 0010000000 2200000000 2200000000 (6*10 + 6*4 = 84) Should cost more than: 0000000000 0000000000 0000011122 0000100022 0001000000 0010000000 2200000000 2200000000 (6*10 + 4*4 = 76) But using the scoring method DDY and Zack have described, that would not be the case. If you want to consider a diagonal to be something other than a corridor, then consider it to cost 14 points each. -Jeff |
![]() |
| Viewing: Codewalkers Forums > PHP Contests > Current Contest > Maps & Tools |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|