[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Omaha.pm] Pet paradise challenge: perl_1: basic parsing done



http://github.com/jhannah/odynug/tree/master/pet_paradise/perl_1

Basic reservation logic and reports done. So now if you assume my kennel has infinite capacity, everything is peachy. :)

Next tasks:
   # TODO: MAX_SMALL_CAGES, MAX_LARGE_CAGES caps
   # TODO: Intelligence about $res->payment?
   # TODO: Handle real dates, not these bogus integers.

:)

j




Hannah-Mac-Mini-2:~/src/odynug/pet_paradise/perl_1 jhannah$ perl first_come_first_serve.pl
1 reserved.
2 reserved.
3 reserved.
4 reserved.
5 reserved.
6 reserved.
7 reserved.
8 reserved.
9 reserved.
10 reserved.
11 reserved.
12 reserved.
13 reserved.
14 reserved.
15 reserved.
16 reserved.
17 reserved.
18 reserved.
19 reserved.
20 reserved.
21 reserved.
22 reserved.
23 reserved.
24 reserved.
25 reserved.
26 reserved.
27 reserved.
28 reserved.
29 reserved.
30 reserved.
31 reserved.
32 reserved.
33 reserved.
34 reserved.
35 reserved.
36 reserved.
37 reserved.
38 reserved.
39 reserved.
40 reserved.


Our upcoming reservations:

   20090615
      SMALL#1: pet#3 (70 lb. CAT)
      SMALL#2: pet#4 (61 lb. CAT)
      SMALL#3: pet#14 (75 lb. DOG)
      SMALL#4: pet#17 (67 lb. CAT)
      SMALL#5: pet#25 (48 lb. DOG)
      SMALL#6: pet#27 (34 lb. DOG)
      SMALL#7: pet#31 (16 lb. DOG)
      SMALL#8: pet#32 (21 lb. DOG)
      SMALL#9: pet#41 (82 lb. DOG)
      SMALL#10: pet#42 (39 lb. CAT)

   20090616
      SMALL#1: pet#3 (70 lb. CAT)
      SMALL#2: pet#4 (61 lb. CAT)
      SMALL#3: pet#5 (34 lb. CAT)
      SMALL#4: pet#6 (36 lb. CAT)
      SMALL#5: pet#14 (75 lb. DOG)
      SMALL#6: pet#15 (32 lb. CAT)
      SMALL#7: pet#16 (21 lb. DOG)
      SMALL#8: pet#17 (67 lb. CAT)
      SMALL#9: pet#19 (62 lb. DOG)
      SMALL#10: pet#46 (59 lb. DOG)

   20090617
      SMALL#1: pet#1 (71 lb. DOG)
      SMALL#2: pet#2 (74 lb. DOG)
      SMALL#3: pet#3 (70 lb. CAT)
      SMALL#4: pet#4 (61 lb. CAT)
      SMALL#5: pet#7 (38 lb. CAT)
      SMALL#6: pet#8 (26 lb. DOG)
      SMALL#7: pet#9 (81 lb. CAT)
      SMALL#8: pet#12 (49 lb. CAT)
      SMALL#9: pet#13 (61 lb. CAT)
      SMALL#10: pet#46 (59 lb. DOG)

   20090618
      SMALL#1: pet#1 (71 lb. DOG)
      SMALL#2: pet#2 (74 lb. DOG)
      SMALL#3: pet#4 (61 lb. CAT)
      SMALL#4: pet#8 (26 lb. DOG)
      SMALL#5: pet#9 (81 lb. CAT)
      SMALL#6: pet#10 (33 lb. CAT)
      SMALL#7: pet#11 (20 lb. CAT)
      SMALL#8: pet#15 (32 lb. CAT)
      SMALL#9: pet#16 (21 lb. DOG)
      SMALL#10: pet#45 (15 lb. CAT)

   20090619
      SMALL#1: pet#8 (26 lb. DOG)
      SMALL#2: pet#9 (81 lb. CAT)
      SMALL#3: pet#10 (33 lb. CAT)
      SMALL#4: pet#11 (20 lb. CAT)
      SMALL#5: pet#20 (82 lb. DOG)
      SMALL#6: pet#21 (59 lb. CAT)
      SMALL#7: pet#22 (47 lb. DOG)
      SMALL#8: pet#26 (37 lb. DOG)
      SMALL#9: pet#28 (41 lb. DOG)
      SMALL#10: pet#43 (40 lb. CAT)

   20090620
      SMALL#1: pet#10 (33 lb. CAT)
      SMALL#2: pet#11 (20 lb. CAT)
      SMALL#3: pet#28 (41 lb. DOG)
      SMALL#4: pet#29 (20 lb. DOG)
      SMALL#5: pet#30 (29 lb. CAT)
      SMALL#6: pet#34 (22 lb. CAT)
      SMALL#7: pet#35 (24 lb. CAT)
      SMALL#8: pet#39 (39 lb. DOG)
      SMALL#9: pet#40 (82 lb. CAT)
      SMALL#10: pet#43 (40 lb. CAT)

   20090621
      SMALL#1: pet#28 (41 lb. DOG)
      SMALL#2: pet#29 (20 lb. DOG)
      SMALL#3: pet#30 (29 lb. CAT)
      SMALL#4: pet#34 (22 lb. CAT)
      SMALL#5: pet#35 (24 lb. CAT)
      SMALL#6: pet#39 (39 lb. DOG)
      SMALL#7: pet#40 (82 lb. CAT)