|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#16
|
||||
|
||||
|
RE: Maps & Tools
Quote:
I think the confusion is resulting from improper notation. A "1" should represent a room, while a "2" should represent a corridor. If you interchanged these two numbers, your scoring for Quote:
as 3*10+2*4 would be correct. |
|
#17
|
|||
|
|||
|
RE: RE: Maps & Tools
your scoring is ok, but i don't get this part:
Quote:
what is wrong with DDY's and Zack's scoring? |
|
#18
|
|||
|
|||
|
RE: Maps & Tools
Ahh... very sorry... my confusion...
I was using the wrong numbers for rooms and corridors. Been a very long week :-[ -Jeff |
|
#19
|
|||
|
|||
|
RE: Maps & Tools
online applet updated to new map size(50x50) ;)
|
|
#20
|
|||
|
|||
|
RE: RE: Maps & Tools
Quote:
I think this is wrong. How could the diagonal only cost 4? I think it's: 3*10 + 2*4 = 38 or the long way 10 + 14 + 14 = 38 Am I correct or not? |
|
#21
|
|||
|
|||
|
RE: Maps & Tools
Quote:
In this sample, there is only 1 corridor block! 0 (black) : wall block 1 (orange): room block 2 (green) : corridor block |
|
#22
|
|||
|
|||
|
RE: Maps & Tools
Perhaps the difficulty is that horizontal/verticals do not cost anything other than to bore out the room, versus diagonals cost to knock out a cooridor. If we use 10x + 4y for the costs, then x would be the number of 2's in the room array, while y would be the number of diagonals required to join the 2's that aren't connected horizonatally/vertically. Am I right? GIven the following:
Code:
01110111 01110111 00020200 00002000 00011110 00111111 It would have a cost of 3*10 (number of 0 converted to 2) + 2*4 (number of "diagonals" = 38 Or would this be: 10*3 (3 horiz/vert corridors) + 14*2 (2 diagonal corridors) = 10*5 (total corridors) + 4*2 (diagonal) = 58 |
|
#23
|
|||
|
|||
|
RE: Maps & Tools
38 is correct.. (but there is a cheaper solution of 28 ;))
|
|
#24
|
||||
|
||||
|
RE: RE: Maps & Tools
Quote:
this is the cheaper solution. 2*10 + 2*4 part of the confusion is that each corner to corner connection of 1's and 2's is counted as a diagonal. Each time you use a 2 it count's 10 points and each time it makes a connection to another 2 or two a one on the corner it counts as +4 (this simulates 1.414 which is the sqrt(2)). so one corridor that touches 3 rooms on corners counts as 22, ten for the block and 3*4 for the corner connection. 001101100 001101100 000020000 001100000 001100000 |
|
#25
|
|||
|
|||
|
RE: Maps & Tools
This thread has me totally confused on the scoring. If people can't even agree on what
00000 01010 00200 00100 00000 is I think we need a better explination. |
|
#26
|
|||
|
|||
|
RE: Maps & Tools
Fairly certain that the above example is worth 18...
|
|
#27
|
|||
|
|||
|
RE: Maps & Tools
Concur - I was wrong when I initially questioned that example... I was using the wrong numbers for rooms and corridors.
-Jeff |
|
#28
|
|||
|
|||
|
RE: Maps & Tools
just to be sure.
01010 01210 00020 00010 is it 20 or 24? |
|
#29
|
|||
|
|||
|
RE: Maps & Tools
its 20
|
|
#30
|
|||
|
|||
|
RE: Maps & Tools
an example (1 - room, 2 - path) 121 102 202 011 will be added 4 points for diagonal, even if we have alternative path? |
![]() |
| Viewing: Codewalkers Forums > PHP Contests > Current Contest > Maps & Tools |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|