Hex Artifact Content
Not logged in

Artifact 9ce063855f41ff058a7dcd6903865f03d3e75eac:


0000: 54 65 61 6d 3a 0a 20 20 44 61 72 6b 20 49 6e 74  Team:.  Dark Int
0010: 65 67 65 72 73 0a 4d 65 6d 62 65 72 3a 0a 20 20  egers.Member:.  
0020: 4b 61 7a 75 68 69 72 6f 20 49 6e 61 62 61 20 28  Kazuhiro Inaba (
0030: 77 77 77 2e 6b 6d 6f 6e 6f 73 2e 6e 65 74 20 2f  www.kmonos.net /
0040: 20 6b 69 6b 69 40 6b 6d 6f 6e 6f 73 2e 6e 65 74   kiki@kmonos.net
0050: 29 0a 4c 61 6e 67 75 61 67 65 3a 0a 20 20 44 20  ).Language:.  D 
0060: 50 72 6f 67 72 61 6d 6d 69 6e 67 20 4c 61 6e 67  Programming Lang
0070: 75 61 67 65 20 28 64 6c 61 6e 67 2e 6f 72 67 29  uage (dlang.org)
0080: 0a 0a 54 68 69 73 20 73 75 62 6d 69 73 73 69 6f  ..This submissio
0090: 6e 20 66 6f 72 20 6c 69 67 68 74 6e 69 6e 67 20  n for lightning 
00a0: 64 69 76 69 73 69 6f 6e 20 69 73 20 6e 6f 74 20  division is not 
00b0: 70 61 72 74 69 63 75 6c 61 72 79 20 69 6e 74 65  particulary inte
00c0: 72 73 65 74 69 6e 67 2e 0a 0a 2d 20 52 6f 62 6f  rseting...- Robo
00d0: 74 20 72 75 73 68 65 73 20 74 6f 20 74 68 65 20  t rushes to the 
00e0: 6e 65 61 72 65 73 74 20 6c 61 6d 62 64 61 20 28  nearest lambda (
00f0: 6f 72 20 74 68 65 20 6f 70 65 6e 20 6c 69 66 74  or the open lift
0100: 29 20 62 79 20 62 72 65 61 64 74 68 20 66 69 72  ) by breadth fir
0110: 73 74 20 73 65 61 72 63 68 2e 0a 20 20 2d 20 4e  st search..  - N
0120: 6f 74 20 61 74 20 61 6c 6c 20 74 61 6b 69 6e 67  ot at all taking
0130: 20 69 6e 74 6f 20 61 63 63 6f 75 6e 74 20 74 68   into account th
0140: 65 20 64 79 6e 61 6d 69 63 73 20 28 66 61 6c 6c  e dynamics (fall
0150: 69 6e 67 20 72 6f 63 6b 73 2c 20 66 6c 6f 6f 64  ing rocks, flood
0160: 73 29 2e 0a 20 20 2d 20 54 6f 20 6d 69 74 69 67  s)..  - To mitig
0170: 61 74 65 20 74 68 65 20 73 74 61 74 69 63 6e 65  ate the staticne
0180: 73 73 2c 20 74 68 65 20 72 6f 62 6f 74 20 61 76  ss, the robot av
0190: 6f 69 64 73 20 74 68 65 20 27 2e 27 20 62 65 6c  oids the '.' bel
01a0: 6f 77 20 27 2a 27 20 61 73 20 6d 75 63 68 20 61  ow '*' as much a
01b0: 73 0a 20 20 20 20 70 6f 73 73 69 62 6c 65 2c 20  s.    possible, 
01c0: 73 6f 20 74 68 61 74 20 69 74 20 77 6f 6e 27 74  so that it won't
01d0: 20 66 61 6c 6c 20 6e 65 77 20 72 6f 63 6b 73 2e   fall new rocks.
01e0: 0a 0a 2d 20 4f 75 74 70 75 74 20 72 6f 75 74 69  ..- Output routi
01f0: 6e 65 20 69 73 20 27 67 75 61 72 64 65 64 27 20  ne is 'guarded' 
0200: 62 79 20 61 20 27 73 75 64 64 65 6e 20 64 65 61  by a 'sudden dea
0210: 74 68 27 20 6f 72 20 27 73 74 72 61 79 20 73 68  th' or 'stray sh
0220: 65 65 70 27 20 64 65 74 65 63 74 6f 72 2e 0a 20  eep' detector.. 
0230: 20 54 68 61 74 20 69 73 2c 20 69 66 20 74 68 65   That is, if the
0240: 20 61 62 6f 76 65 20 73 65 61 72 63 68 20 72 6f   above search ro
0250: 75 74 69 6e 65 20 77 61 73 20 68 69 74 20 62 79  utine was hit by
0260: 20 61 20 72 6f 63 6b 20 6f 72 20 61 20 77 61 74   a rock or a wat
0270: 65 72 2c 20 6f 72 20 69 74 0a 20 20 63 6f 75 6c  er, or it.  coul
0280: 64 6e 27 74 20 66 69 6e 64 20 61 20 77 61 79 20  dn't find a way 
0290: 74 6f 20 74 68 65 20 6e 65 78 74 20 74 61 72 67  to the next targ
02a0: 65 74 20 61 6e 64 20 77 61 6c 6b 65 64 20 69 6e  et and walked in
02b0: 20 76 61 69 6e 2c 20 74 68 65 20 6f 75 74 70 75   vain, the outpu
02c0: 74 20 67 75 61 72 64 73 0a 20 20 74 72 69 6d 73  t guards.  trims
02d0: 20 74 68 65 20 63 6f 6d 6d 61 6e 64 20 68 69 73   the command his
02e0: 74 6f 72 79 20 61 6e 64 20 69 6e 73 65 72 74 73  tory and inserts
02f0: 20 74 68 65 20 27 41 27 62 6f 72 74 20 61 74 20   the 'A'bort at 
0300: 74 68 65 20 6f 70 74 69 6d 61 6c 20 74 69 6d 69  the optimal timi
0310: 6e 67 2e 0a 20 20 54 68 69 73 20 69 73 20 61 6c  ng..  This is al
0320: 73 6f 20 75 73 65 64 20 66 6f 72 20 53 49 47 49  so used for SIGI
0330: 4e 54 20 68 61 6e 64 6c 69 6e 67 2e 0a 0a 2d 20  NT handling...- 
0340: 67 75 69 2e 64 20 69 73 20 61 20 77 69 6e 64 6f  gui.d is a windo
0350: 77 73 20 47 55 49 20 66 6f 72 20 74 68 65 20 67  ws GUI for the g
0360: 61 6d 65 2c 20 75 73 69 6e 67 20 44 46 4c 20 28  ame, using DFL (
0370: 68 74 74 70 3a 2f 2f 67 69 74 68 75 62 2e 63 6f  http://github.co
0380: 6d 2f 52 61 79 65 72 64 2f 64 66 6c 29 0a 20 20  m/Rayerd/dfl).  
0390: 69 74 20 69 73 20 6e 6f 74 20 63 6f 6d 70 69 6c  it is not compil
03a0: 65 64 20 69 6e 74 6f 20 74 68 65 20 73 75 62 6d  ed into the subm
03b0: 69 74 74 65 64 20 72 6f 75 74 69 6e 65 2e 20 54  itted routine. T
03c0: 68 69 73 20 69 73 20 6a 75 73 74 20 61 20 68 65  his is just a he
03d0: 6c 70 65 72 2e 0a 0a 53 74 61 79 20 74 75 6e 65  lper...Stay tune
03e0: 64 20 66 6f 72 20 74 68 65 20 66 75 6c 6c 20 73  d for the full s
03f0: 75 62 6d 69 73 73 69 6f 6e 2c 20 6a 75 64 67 65  ubmission, judge
0400: 73 21 0a                                         s!.