Incorrect search filter: invalid characters - *.p[ml]
AI-Pathfinding-OptimizeMultiple

 view release on metacpan or  search on metacpan

Build.PL  view on Meta::CPAN

14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
  "Module::Build" => "0.28"
},
"dist_abstract" => "optimize path finding searches for a large set of initial conditions (for better average performance).",
"dist_author" => [
  "Shlomi Fish <shlomif\@cpan.org>"
],
"dist_name" => "AI-Pathfinding-OptimizeMultiple",
"dist_version" => "0.0.17",
"license" => "mit",
"module_name" => "AI::Pathfinding::OptimizeMultiple",
"recursive_test_files" => 1,
"requires" => {
  "Carp" => 0,
  "Exception::Class" => 0,
  "File::Path" => 0,
  "Getopt::Long" => 0,
  "IO::File" => 0,
  "MooX" => 0,
  "MooX::Types::MooseLike::Base" => 0,
  "MooX::late" => "0.007",
  "PDL" => 0,

Build.PL  view on Meta::CPAN

36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
    "Scalar::Util" => 0,
    "autodie" => 0,
    "perl" => "5.012",
    "strict" => 0,
    "vars" => 0,
    "warnings" => 0
  },
  "script_files" => [
    "bin/optimize-game-ai-multi-tasking"
  ],
  "test_requires" => {
    "File::Spec" => 0,
    "IO::Handle" => 0,
    "IPC::Open3" => 0,
    "Test::Differences" => 0,
    "Test::More" => "0.88"
  }
);
 
 
my %fallback_build_requires = (
  "File::Spec" => 0,
  "IO::Handle" => 0,
  "IPC::Open3" => 0,
  "Module::Build" => "0.28",
  "Test::Differences" => 0,
  "Test::More" => "0.88"
);
 
 
unless ( eval { Module::Build->VERSION(0.4004) } ) {
  delete $module_build_args{test_requires};
  $module_build_args{build_requires} = \%fallback_build_requires;
}
 
my $build = Module::Build->new(%module_build_args);
 
 
$build->create_build_script;

Changes  view on Meta::CPAN

1
2
3
4
5
6
7
8
9
10
11
12
0.0.17      2022-10-27
    - Fix tests with latest PDL.
        - Thanks to SREZIC
 
0.0.16      2020-10-20
    - dist.ini / weaver.ini / .tidyallrc / etc. cleanup
        - Move to @SHLOMIF
        - Inspired by Lady_Aleena.
 
v0.0.15     2017-05-01
    - Skip adding ~$ files to the MANIFEST.

Changes  view on Meta::CPAN

14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
        - Thanks to Toby Inkster.
 
v0.0.14     2017-05-01
    - Convert dist.ini to use the @SHLOMIF bundle.
    - Fix a bug where a pdl was passed instead of an int.
        - Thanks to Slaven Rezic and Toby Inkster.
 
v0.0.13     2016-04-20
    - Improve the exception handling due to a non-Exception::Class error:
        - Thanks also to the example code in
    - Add Test::Kwalitee::Extra.
 
v0.0.12     2015-03-26
    - Add the stats_factors option to the
    lib/AI/Pathfinding/OptimizeMultiple.pm constructor.
        - Contains some factors to normalise the iters of specific scans.
    - Add the --stats-factors option to ::CmdLine.
    - Allow to customise the --total-iterations-limit using
    $ENV{FC_SOLVE_RANGE_ITERS_LIMIT} .
 
v0.0.11     2014-03-29
    - Move the external-deps-using release tests to xt/ instead of t/
        - Better Kwalitee.
        - Thanks to "ether" on #distzilla for the insights on fixing it.
 
v0.0.10     2014-03-28
    - Convert to the Test::CPAN::Changes Dist-Zilla plugin.
 
v0.0.9      2014-03-28
    - Add an explicit symbol import on "use PDL"/etc.
    - Add get_scan_ids_aref() and lookup_scan_idx_based_on_id() to
    AI::Pathfinding::OptimizeMultiple::DataInputObj .

Changes  view on Meta::CPAN

62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
        - Now it's Build.PL-only.
    - Add provides to the META.yml.
 
v0.0.6      2014-01-25
    - Add "use strict;" and "use warnings;" to MooX::late modules.
        - Kwalitee
    - Remove the ^Rejects and ^scripts sub-directories.
        - They were confusing CPANTS and reduced our Kwalitee.
 
v0.0.5      2013-01-22
    - skipping compile test for scripts/bump-version-number.pl .
        - it is for use by the module's maintainer and has
        non-essential prereqs.
 
v0.0.4      2013-01-20
 
    - Add missing Prerequisites
        - MooX::late
        - MooX::Types::MooseLike::Base
 
v0.0.3      2013-01-18

MANIFEST  view on Meta::CPAN

13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
lib/AI/Pathfinding/OptimizeMultiple/App/CmdLine.pm
lib/AI/Pathfinding/OptimizeMultiple/DataInputObj.pm
lib/AI/Pathfinding/OptimizeMultiple/IterState.pm
lib/AI/Pathfinding/OptimizeMultiple/PostProcessor.pm
lib/AI/Pathfinding/OptimizeMultiple/Scan.pm
lib/AI/Pathfinding/OptimizeMultiple/ScanRun.pm
lib/AI/Pathfinding/OptimizeMultiple/SimulationResults.pm
rejects.pod
t/00-compile.t
t/cmdline-app.t
t/optimize-multiple-full-test.t
t/style-trailing-space.t
weaver.ini
xt/author/eol.t
xt/author/no-tabs.t
xt/author/pod-coverage.t
xt/author/pod-syntax.t
xt/release/cpan-changes.t
xt/release/trailing-space.t

META.json  view on Meta::CPAN

49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
         "PDL" : "0",
         "PDL::IO::FastRaw" : "0",
         "Scalar::Util" : "0",
         "autodie" : "0",
         "perl" : "5.012",
         "strict" : "0",
         "vars" : "0",
         "warnings" : "0"
      }
   },
   "test" : {
      "requires" : {
         "File::Spec" : "0",
         "IO::Handle" : "0",
         "IPC::Open3" : "0",
         "Test::Differences" : "0",
         "Test::More" : "0.88"
      }
   }
},
"provides" : {

META.json  view on Meta::CPAN

115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
"version" : "0.0.17",
"x_Dist_Zilla" : {
   "perl" : {
      "version" : "5.034001"
   },
   "plugins" : [
      {
         "class" : "Dist::Zilla::Plugin::Prereqs",
         "config" : {
            "Dist::Zilla::Plugin::Prereqs" : {
               "phase" : "test",
               "type" : "requires"
            }
         },
         "name" : "@Filter/TestMoreDoneTesting",
         "version" : "6.024"
      },
      {
         "class" : "Dist::Zilla::Plugin::AutoPrereqs",
         "name" : "@Filter/AutoPrereqs",
         "version" : "6.024"

META.json  view on Meta::CPAN

282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
   "config" : {
      "Dist::Zilla::Plugin::Test::Compile" : {
         "bail_out_on_fail" : 0,
         "fail_on_warning" : "author",
         "fake_home" : 0,
         "filename" : "t/00-compile.t",
         "module_finder" : [
            ":InstallModules"
         ],
         "needs_display" : 0,
         "phase" : "test",
         "script_finder" : [
            ":PerlExecFiles"
         ],
         "skips" : [],
         "switch" : []
      }
   },
   "name" : "@Filter/Test::Compile",
   "version" : "2.058"
},

META.yml  view on Meta::CPAN

66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
  repository: ssh://git@github.com/shlomif/fc-solve.git
version: 0.0.17
x_Dist_Zilla:
  perl:
    version: '5.034001'
  plugins:
    -
      class: Dist::Zilla::Plugin::Prereqs
      config:
        Dist::Zilla::Plugin::Prereqs:
          phase: test
          type: requires
      name: '@Filter/TestMoreDoneTesting'
      version: '6.024'
    -
      class: Dist::Zilla::Plugin::AutoPrereqs
      name: '@Filter/AutoPrereqs'
      version: '6.024'
    -
      class: Dist::Zilla::Plugin::ExecDir
      name: '@Filter/ExecDir'

META.yml  view on Meta::CPAN

196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
  class: Dist::Zilla::Plugin::Test::Compile
  config:
    Dist::Zilla::Plugin::Test::Compile:
      bail_out_on_fail: '0'
      fail_on_warning: author
      fake_home: 0
      filename: t/00-compile.t
      module_finder:
        - ':InstallModules'
      needs_display: 0
      phase: test
      script_finder:
        - ':PerlExecFiles'
      skips: []
      switch: []
  name: '@Filter/Test::Compile'
  version: '2.058'
-
  class: Dist::Zilla::Plugin::Test::CPAN::Changes
  config:
    Dist::Zilla::Plugin::Test::CPAN::Changes:

bin/optimize-game-ai-multi-tasking  view on Meta::CPAN

37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
optimize-game-ai-multi-tasking - command line driver for L<AI::Pathfinding::OptimizeMultiple>
 
=head1 VERSION
 
version 0.0.17
 
=head1 DESCRIPTION
 
To be written.
 
=for :stopwords cpan testmatrix url bugtracker rt cpants kwalitee diff irc mailto metadata placeholders metacpan
 
=head1 SUPPORT
 
=head2 Websites
 
The following websites have more information about this module, and may be of help to you. As always,
in addition to those websites please use your favorite search engine to discover more resources.
 
=over 4

bin/optimize-game-ai-multi-tasking  view on Meta::CPAN

76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
CPANTS
 
The CPANTS is a website that analyzes the Kwalitee ( code metrics ) of a distribution.
 
 
=item *
 
CPAN Testers
 
The CPAN Testers is a network of smoke testers who run automated tests on uploaded CPAN distributions.
 
 
=item *
 
CPAN Testers Matrix
 
The CPAN Testers Matrix is a website that provides a visual overview of the test results for a distribution on various Perls/platforms.
 
 
=item *
 
CPAN Testers Dependencies
 
The CPAN Testers Dependencies is a website that shows a chart of the test results of all dependencies for a distribution.
 
 
=back
 
=head2 Bugs / Feature Requests
 
Please report any bugs or feature requests by email to C<bug-ai-pathfinding-optimizemultiple at rt.cpan.org>, or through
the web interface at L<https://rt.cpan.org/Public/Bug/Report.html?Queue=AI-Pathfinding-OptimizeMultiple>. You will be automatically notified of any
progress on the request by the system.
 
=head2 Source Code

bin/optimize-game-ai-multi-tasking  view on Meta::CPAN

123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
=head1 AUTHOR
 
Shlomi Fish <shlomif@cpan.org>
 
=head1 BUGS
 
Please report any bugs or feature requests on the bugtracker website
 
When submitting a bug or request, please include a test-file or a
patch to an existing test-file that illustrates the bug or desired
feature.
 
=head1 COPYRIGHT AND LICENSE
 
This software is Copyright (c) 2012 by Shlomi Fish.
 
This is free software, licensed under:
 
  The MIT (X11) License

lib/AI/Pathfinding/OptimizeMultiple.pm  view on Meta::CPAN

742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
=head2 $calc_meta_scan->calc_meta_scan()
 
Calculates the meta-scan after initialisation. See here for the details
of the algorithm:
 
 
=head2 $self->calc_flares_meta_scan()
 
This function calculates the flares meta-scan: i.e: assuming that all atomic
scans are run one after the other and the shortest solutions of all
successful scans are being picked.
 
=head2 $calc_meta_scan->calc_board_iters($board_idx)
 
Calculates the iterations of the board $board_idx in all the scans.
 
Returns a hash_ref containing the key 'per_scan_iters' for the iterations
per scan, and 'board_iters' for the total board iterations when ran in the
scans.

lib/AI/Pathfinding/OptimizeMultiple.pm  view on Meta::CPAN

811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
=head1 AUTHOR
 
Shlomi Fish, L<http://www.shlomifish.org/> .
 
=head1 ACKNOWLEDGEMENTS
 
B<popl> from Freenode's #perl for trying to dig some references to an existing
algorithm in the scientific literature.
 
=for :stopwords cpan testmatrix url bugtracker rt cpants kwalitee diff irc mailto metadata placeholders metacpan
 
=head1 SUPPORT
 
=head2 Websites
 
The following websites have more information about this module, and may be of help to you. As always,
in addition to those websites please use your favorite search engine to discover more resources.
 
=over 4

lib/AI/Pathfinding/OptimizeMultiple.pm  view on Meta::CPAN

850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
CPANTS
 
The CPANTS is a website that analyzes the Kwalitee ( code metrics ) of a distribution.
 
 
=item *
 
CPAN Testers
 
The CPAN Testers is a network of smoke testers who run automated tests on uploaded CPAN distributions.
 
 
=item *
 
CPAN Testers Matrix
 
The CPAN Testers Matrix is a website that provides a visual overview of the test results for a distribution on various Perls/platforms.
 
 
=item *
 
CPAN Testers Dependencies
 
The CPAN Testers Dependencies is a website that shows a chart of the test results of all dependencies for a distribution.
 
 
=back
 
=head2 Bugs / Feature Requests
 
Please report any bugs or feature requests by email to C<bug-ai-pathfinding-optimizemultiple at rt.cpan.org>, or through
the web interface at L<https://rt.cpan.org/Public/Bug/Report.html?Queue=AI-Pathfinding-OptimizeMultiple>. You will be automatically notified of any
progress on the request by the system.
 
=head2 Source Code

lib/AI/Pathfinding/OptimizeMultiple.pm  view on Meta::CPAN

897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
=head1 AUTHOR
 
Shlomi Fish <shlomif@cpan.org>
 
=head1 BUGS
 
Please report any bugs or feature requests on the bugtracker website
 
When submitting a bug or request, please include a test-file or a
patch to an existing test-file that illustrates the bug or desired
feature.
 
=head1 COPYRIGHT AND LICENSE
 
This software is Copyright (c) 2012 by Shlomi Fish.
 
This is free software, licensed under:
 
  The MIT (X11) License

lib/AI/Pathfinding/OptimizeMultiple/App/CmdLine.pm  view on Meta::CPAN

588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
=head2 $self->input_obj_class()
 
The class to handle the input data - by default -
L<AI::Pathfinding::OptimizeMultiple::DataInputObj>.
 
=head2 BUILD()
 
Moo leftover. B<INTERNAL USE>.
 
=for :stopwords cpan testmatrix url bugtracker rt cpants kwalitee diff irc mailto metadata placeholders metacpan
 
=head1 SUPPORT
 
=head2 Websites
 
The following websites have more information about this module, and may be of help to you. As always,
in addition to those websites please use your favorite search engine to discover more resources.
 
=over 4

lib/AI/Pathfinding/OptimizeMultiple/App/CmdLine.pm  view on Meta::CPAN

627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
CPANTS
 
The CPANTS is a website that analyzes the Kwalitee ( code metrics ) of a distribution.
 
 
=item *
 
CPAN Testers
 
The CPAN Testers is a network of smoke testers who run automated tests on uploaded CPAN distributions.
 
 
=item *
 
CPAN Testers Matrix
 
The CPAN Testers Matrix is a website that provides a visual overview of the test results for a distribution on various Perls/platforms.
 
 
=item *
 
CPAN Testers Dependencies
 
The CPAN Testers Dependencies is a website that shows a chart of the test results of all dependencies for a distribution.
 
 
=back
 
=head2 Bugs / Feature Requests
 
Please report any bugs or feature requests by email to C<bug-ai-pathfinding-optimizemultiple at rt.cpan.org>, or through
the web interface at L<https://rt.cpan.org/Public/Bug/Report.html?Queue=AI-Pathfinding-OptimizeMultiple>. You will be automatically notified of any
progress on the request by the system.
 
=head2 Source Code

lib/AI/Pathfinding/OptimizeMultiple/App/CmdLine.pm  view on Meta::CPAN

674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
=head1 AUTHOR
 
Shlomi Fish <shlomif@cpan.org>
 
=head1 BUGS
 
Please report any bugs or feature requests on the bugtracker website
 
When submitting a bug or request, please include a test-file or a
patch to an existing test-file that illustrates the bug or desired
feature.
 
=head1 COPYRIGHT AND LICENSE
 
This software is Copyright (c) 2012 by Shlomi Fish.
 
This is free software, licensed under:
 
  The MIT (X11) License

lib/AI/Pathfinding/OptimizeMultiple/DataInputObj.pm  view on Meta::CPAN

485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
=head2 $self->get_scan_ids_aref()
 
Get an array reference of the scan IDs.
 
=head2 my $idx = $self->lookup_scan_idx_based_on_id($scan_id)
 
$scan_id is a string and lookup_scan_idx_based_on_id() looks up its index
in the scans.
 
=for :stopwords cpan testmatrix url bugtracker rt cpants kwalitee diff irc mailto metadata placeholders metacpan
 
=head1 SUPPORT
 
=head2 Websites
 
The following websites have more information about this module, and may be of help to you. As always,
in addition to those websites please use your favorite search engine to discover more resources.
 
=over 4

lib/AI/Pathfinding/OptimizeMultiple/DataInputObj.pm  view on Meta::CPAN

524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
CPANTS
 
The CPANTS is a website that analyzes the Kwalitee ( code metrics ) of a distribution.
 
 
=item *
 
CPAN Testers
 
The CPAN Testers is a network of smoke testers who run automated tests on uploaded CPAN distributions.
 
 
=item *
 
CPAN Testers Matrix
 
The CPAN Testers Matrix is a website that provides a visual overview of the test results for a distribution on various Perls/platforms.
 
 
=item *
 
CPAN Testers Dependencies
 
The CPAN Testers Dependencies is a website that shows a chart of the test results of all dependencies for a distribution.
 
 
=back
 
=head2 Bugs / Feature Requests
 
Please report any bugs or feature requests by email to C<bug-ai-pathfinding-optimizemultiple at rt.cpan.org>, or through
the web interface at L<https://rt.cpan.org/Public/Bug/Report.html?Queue=AI-Pathfinding-OptimizeMultiple>. You will be automatically notified of any
progress on the request by the system.
 
=head2 Source Code

lib/AI/Pathfinding/OptimizeMultiple/DataInputObj.pm  view on Meta::CPAN

571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
=head1 AUTHOR
 
Shlomi Fish <shlomif@cpan.org>
 
=head1 BUGS
 
Please report any bugs or feature requests on the bugtracker website
 
When submitting a bug or request, please include a test-file or a
patch to an existing test-file that illustrates the bug or desired
feature.
 
=head1 COPYRIGHT AND LICENSE
 
This software is Copyright (c) 2012 by Shlomi Fish.
 
This is free software, licensed under:
 
  The MIT (X11) License

lib/AI/Pathfinding/OptimizeMultiple/IterState.pm  view on Meta::CPAN

186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
Internal use.
 
=head2 $self->update_idx_slice()
 
Internal use.
 
=head2 $self->register_params()
 
Internal use.
 
=for :stopwords cpan testmatrix url bugtracker rt cpants kwalitee diff irc mailto metadata placeholders metacpan
 
=head1 SUPPORT
 
=head2 Websites
 
The following websites have more information about this module, and may be of help to you. As always,
in addition to those websites please use your favorite search engine to discover more resources.
 
=over 4

lib/AI/Pathfinding/OptimizeMultiple/IterState.pm  view on Meta::CPAN

225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
CPANTS
 
The CPANTS is a website that analyzes the Kwalitee ( code metrics ) of a distribution.
 
 
=item *
 
CPAN Testers
 
The CPAN Testers is a network of smoke testers who run automated tests on uploaded CPAN distributions.
 
 
=item *
 
CPAN Testers Matrix
 
The CPAN Testers Matrix is a website that provides a visual overview of the test results for a distribution on various Perls/platforms.
 
 
=item *
 
CPAN Testers Dependencies
 
The CPAN Testers Dependencies is a website that shows a chart of the test results of all dependencies for a distribution.
 
 
=back
 
=head2 Bugs / Feature Requests
 
Please report any bugs or feature requests by email to C<bug-ai-pathfinding-optimizemultiple at rt.cpan.org>, or through
the web interface at L<https://rt.cpan.org/Public/Bug/Report.html?Queue=AI-Pathfinding-OptimizeMultiple>. You will be automatically notified of any
progress on the request by the system.
 
=head2 Source Code

lib/AI/Pathfinding/OptimizeMultiple/IterState.pm  view on Meta::CPAN

272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
=head1 AUTHOR
 
Shlomi Fish <shlomif@cpan.org>
 
=head1 BUGS
 
Please report any bugs or feature requests on the bugtracker website
 
When submitting a bug or request, please include a test-file or a
patch to an existing test-file that illustrates the bug or desired
feature.
 
=head1 COPYRIGHT AND LICENSE
 
This software is Copyright (c) 2012 by Shlomi Fish.
 
This is free software, licensed under:
 
  The MIT (X11) License

lib/AI/Pathfinding/OptimizeMultiple/PostProcessor.pm  view on Meta::CPAN

88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
=head1 SUBROUTINES/METHODS
 
=head2 $self->scans_rle()
 
For internal use.
 
=head2 $self->process($scans_orig)
 
For internal use.
 
=for :stopwords cpan testmatrix url bugtracker rt cpants kwalitee diff irc mailto metadata placeholders metacpan
 
=head1 SUPPORT
 
=head2 Websites
 
The following websites have more information about this module, and may be of help to you. As always,
in addition to those websites please use your favorite search engine to discover more resources.
 
=over 4

lib/AI/Pathfinding/OptimizeMultiple/PostProcessor.pm  view on Meta::CPAN

127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
CPANTS
 
The CPANTS is a website that analyzes the Kwalitee ( code metrics ) of a distribution.
 
 
=item *
 
CPAN Testers
 
The CPAN Testers is a network of smoke testers who run automated tests on uploaded CPAN distributions.
 
 
=item *
 
CPAN Testers Matrix
 
The CPAN Testers Matrix is a website that provides a visual overview of the test results for a distribution on various Perls/platforms.
 
 
=item *
 
CPAN Testers Dependencies
 
The CPAN Testers Dependencies is a website that shows a chart of the test results of all dependencies for a distribution.
 
 
=back
 
=head2 Bugs / Feature Requests
 
Please report any bugs or feature requests by email to C<bug-ai-pathfinding-optimizemultiple at rt.cpan.org>, or through
the web interface at L<https://rt.cpan.org/Public/Bug/Report.html?Queue=AI-Pathfinding-OptimizeMultiple>. You will be automatically notified of any
progress on the request by the system.
 
=head2 Source Code

lib/AI/Pathfinding/OptimizeMultiple/PostProcessor.pm  view on Meta::CPAN

174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
=head1 AUTHOR
 
Shlomi Fish <shlomif@cpan.org>
 
=head1 BUGS
 
Please report any bugs or feature requests on the bugtracker website
 
When submitting a bug or request, please include a test-file or a
patch to an existing test-file that illustrates the bug or desired
feature.
 
=head1 COPYRIGHT AND LICENSE
 
This software is Copyright (c) 2012 by Shlomi Fish.
 
This is free software, licensed under:
 
  The MIT (X11) License

lib/AI/Pathfinding/OptimizeMultiple/Scan.pm  view on Meta::CPAN

69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
=head2 $self->is_used()
 
Returns whether the scan was used.
 
=head2 $scan->data_file_path()
 
Returns the path to the data file of the scan, where the numbers of iterations
per board are stored.
 
=for :stopwords cpan testmatrix url bugtracker rt cpants kwalitee diff irc mailto metadata placeholders metacpan
 
=head1 SUPPORT
 
=head2 Websites
 
The following websites have more information about this module, and may be of help to you. As always,
in addition to those websites please use your favorite search engine to discover more resources.
 
=over 4

lib/AI/Pathfinding/OptimizeMultiple/Scan.pm  view on Meta::CPAN

108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
CPANTS
 
The CPANTS is a website that analyzes the Kwalitee ( code metrics ) of a distribution.
 
 
=item *
 
CPAN Testers
 
The CPAN Testers is a network of smoke testers who run automated tests on uploaded CPAN distributions.
 
 
=item *
 
CPAN Testers Matrix
 
The CPAN Testers Matrix is a website that provides a visual overview of the test results for a distribution on various Perls/platforms.
 
 
=item *
 
CPAN Testers Dependencies
 
The CPAN Testers Dependencies is a website that shows a chart of the test results of all dependencies for a distribution.
 
 
=back
 
=head2 Bugs / Feature Requests
 
Please report any bugs or feature requests by email to C<bug-ai-pathfinding-optimizemultiple at rt.cpan.org>, or through
the web interface at L<https://rt.cpan.org/Public/Bug/Report.html?Queue=AI-Pathfinding-OptimizeMultiple>. You will be automatically notified of any
progress on the request by the system.
 
=head2 Source Code

lib/AI/Pathfinding/OptimizeMultiple/Scan.pm  view on Meta::CPAN

155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
=head1 AUTHOR
 
Shlomi Fish <shlomif@cpan.org>
 
=head1 BUGS
 
Please report any bugs or feature requests on the bugtracker website
 
When submitting a bug or request, please include a test-file or a
patch to an existing test-file that illustrates the bug or desired
feature.
 
=head1 COPYRIGHT AND LICENSE
 
This software is Copyright (c) 2012 by Shlomi Fish.
 
This is free software, licensed under:
 
  The MIT (X11) License

lib/AI/Pathfinding/OptimizeMultiple/ScanRun.pm  view on Meta::CPAN

70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
=head1 AUTHOR
 
Shlomi Fish, L<http://www.shlomifish.org/> .
 
=head1 ACKNOWLEDGEMENTS
 
B<popl> from Freenode's #perl for trying to dig some references to an existing
algorithm in the scientific literature.
 
=for :stopwords cpan testmatrix url bugtracker rt cpants kwalitee diff irc mailto metadata placeholders metacpan
 
=head1 SUPPORT
 
=head2 Websites
 
The following websites have more information about this module, and may be of help to you. As always,
in addition to those websites please use your favorite search engine to discover more resources.
 
=over 4

lib/AI/Pathfinding/OptimizeMultiple/ScanRun.pm  view on Meta::CPAN

109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
CPANTS
 
The CPANTS is a website that analyzes the Kwalitee ( code metrics ) of a distribution.
 
 
=item *
 
CPAN Testers
 
The CPAN Testers is a network of smoke testers who run automated tests on uploaded CPAN distributions.
 
 
=item *
 
CPAN Testers Matrix
 
The CPAN Testers Matrix is a website that provides a visual overview of the test results for a distribution on various Perls/platforms.
 
 
=item *
 
CPAN Testers Dependencies
 
The CPAN Testers Dependencies is a website that shows a chart of the test results of all dependencies for a distribution.
 
 
=back
 
=head2 Bugs / Feature Requests
 
Please report any bugs or feature requests by email to C<bug-ai-pathfinding-optimizemultiple at rt.cpan.org>, or through
the web interface at L<https://rt.cpan.org/Public/Bug/Report.html?Queue=AI-Pathfinding-OptimizeMultiple>. You will be automatically notified of any
progress on the request by the system.
 
=head2 Source Code

lib/AI/Pathfinding/OptimizeMultiple/ScanRun.pm  view on Meta::CPAN

156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
=head1 AUTHOR
 
Shlomi Fish <shlomif@cpan.org>
 
=head1 BUGS
 
Please report any bugs or feature requests on the bugtracker website
 
When submitting a bug or request, please include a test-file or a
patch to an existing test-file that illustrates the bug or desired
feature.
 
=head1 COPYRIGHT AND LICENSE
 
This software is Copyright (c) 2012 by Shlomi Fish.
 
This is free software, licensed under:
 
  The MIT (X11) License

lib/AI/Pathfinding/OptimizeMultiple/SimulationResults.pm  view on Meta::CPAN

70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
Returns the status.
 
=head1 SEE ALSO
 
L<AI::Pathfinding::OptimizeMultiple> , L<AI::Pathfinding::OptimizeMultiple::ScanRun> .
 
=head1 AUTHOR
 
Shlomi Fish, L<http://www.shlomifish.org/> .
 
=for :stopwords cpan testmatrix url bugtracker rt cpants kwalitee diff irc mailto metadata placeholders metacpan
 
=head1 SUPPORT
 
=head2 Websites
 
The following websites have more information about this module, and may be of help to you. As always,
in addition to those websites please use your favorite search engine to discover more resources.
 
=over 4

lib/AI/Pathfinding/OptimizeMultiple/SimulationResults.pm  view on Meta::CPAN

109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
CPANTS
 
The CPANTS is a website that analyzes the Kwalitee ( code metrics ) of a distribution.
 
 
=item *
 
CPAN Testers
 
The CPAN Testers is a network of smoke testers who run automated tests on uploaded CPAN distributions.
 
 
=item *
 
CPAN Testers Matrix
 
The CPAN Testers Matrix is a website that provides a visual overview of the test results for a distribution on various Perls/platforms.
 
 
=item *
 
CPAN Testers Dependencies
 
The CPAN Testers Dependencies is a website that shows a chart of the test results of all dependencies for a distribution.
 
 
=back
 
=head2 Bugs / Feature Requests
 
Please report any bugs or feature requests by email to C<bug-ai-pathfinding-optimizemultiple at rt.cpan.org>, or through
the web interface at L<https://rt.cpan.org/Public/Bug/Report.html?Queue=AI-Pathfinding-OptimizeMultiple>. You will be automatically notified of any
progress on the request by the system.
 
=head2 Source Code

lib/AI/Pathfinding/OptimizeMultiple/SimulationResults.pm  view on Meta::CPAN

156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
=head1 AUTHOR
 
Shlomi Fish <shlomif@cpan.org>
 
=head1 BUGS
 
Please report any bugs or feature requests on the bugtracker website
 
When submitting a bug or request, please include a test-file or a
patch to an existing test-file that illustrates the bug or desired
feature.
 
=head1 COPYRIGHT AND LICENSE
 
This software is Copyright (c) 2012 by Shlomi Fish.
 
This is free software, licensed under:
 
  The MIT (X11) License

t/00-compile.t  view on Meta::CPAN

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use 5.006;
use strict;
 
# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.058
 
 
plan tests => 9 + ($ENV{AUTHOR_TESTING} ? 1 : 0);
 
my @module_files = (
    'AI/Pathfinding/OptimizeMultiple.pm',
    'AI/Pathfinding/OptimizeMultiple/App/CmdLine.pm',
    'AI/Pathfinding/OptimizeMultiple/DataInputObj.pm',
    'AI/Pathfinding/OptimizeMultiple/IterState.pm',
    'AI/Pathfinding/OptimizeMultiple/PostProcessor.pm',
    'AI/Pathfinding/OptimizeMultiple/Scan.pm',
    'AI/Pathfinding/OptimizeMultiple/ScanRun.pm',
    'AI/Pathfinding/OptimizeMultiple/SimulationResults.pm'

t/00-compile.t  view on Meta::CPAN

62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
}
 
foreach my $file (@scripts)
{ SKIP: {
    open my $fh, '<', $file or warn("Unable to open $file: $!"), next;
    my $line = <$fh>;
 
    close $fh and skip("$file isn't perl", 1) unless $line =~ /^#!\s*(?:\S*perl\S*)((?:\s+-\w*)*)(?:\s*#.*)?$/;
    @switches = (@switches, split(' ', $1)) if $1;
 
    close $fh and skip("$file uses -T; not testable with PERL5LIB", 1)
        if grep { $_ eq '-T' } @switches and $ENV{PERL5LIB};
 
    my $stderr = IO::Handle->new;
 
    diag('Running: ', join(', ', map { my $str = $_; $str =~ s/'/\\'/g; q{'} . $str . q{'} }
            $^X, @switches, '-c', $file))
        if $ENV{PERL_COMPILE_TEST_DEBUG};
 
    my $pid = open3($stdin, '>&STDERR', $stderr, $^X, @switches, '-c', $file);
    binmode $stderr, ':crlf' if $^O eq 'MSWin32';
    my @_warnings = <$stderr>;
    waitpid($pid, 0);
    is($?, 0, "$file compiled ok");
 
    shift @_warnings if @_warnings and $_warnings[0] =~ /^Using .*\bblib/
        and not eval { +require blib; blib->VERSION('1.01') };
 
    # in older perls, -c output is simply the file portion of the path being tested
    if (@_warnings = grep { !/\bsyntax OK$/ }
        grep { chomp; $_ ne (File::Spec->splitpath($file))[2] } @_warnings)
    {
        warn @_warnings;
        push @warnings, @_warnings;
    }
} }

t/cmdline-app.t  view on Meta::CPAN

8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
use vars qw($trap);
 
eval
q{use Test::Trap qw( trap $trap :flow:stderr(systemsafe):stdout(systemsafe):warn );};
 
if ($@)
{
    plan skip_all => "Test::Trap not found.";
}
 
plan tests => 6;
 
my @running_modes = (
    {
        blurb_base => 'modulino',
        sub_ref    => sub {
            my ($flags) = @_;
            AI::Pathfinding::OptimizeMultiple::App::CmdLine->new(
                {
                    argv => [@$flags],
                },

t/optimize-multiple-full-test.t  view on Meta::CPAN

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/perl
 
use strict;
 
use Carp ();
 
use Test::More tests => 4;
 
use Test::Differences qw(eq_or_diff);
 
use PDL (qw/ pdl /);
 
 
# TEST:$c=0;
sub test_based_on_data
{
    local $Test::Builder::Level = $Test::Builder::Level + 1;
 
    my ( $scans_aref, $quotas_aref, $want_results, $stats_factors, $blurb ) =
        @_;
 
    my $results_aref = [];
 
    my $selected_scans = [
        map {

t/optimize-multiple-full-test.t  view on Meta::CPAN

63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
                name  => $scans_aref->[ $_->scan_idx ]->{name},
                iters => $_->iters,
            }
        } @{ $obj->chosen_scans() }
    );
 
    # TEST:$c++;
    return eq_or_diff( \@have, $want_results, "$blurb - (eq_or_diff)", );
}
 
# TEST:$test_based_on_data=$c;
 
{
    # TEST*$test_based_on_data
    test_based_on_data(
        [
            {
                name => "first",
                data => [ 200, 400, 500 ],
            },
            {
                name => "second",
                data => [ 300, 50, 1000 ],
            },
            {

t/optimize-multiple-full-test.t  view on Meta::CPAN

94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
            {
                name  => "third",
                iters => 200,
            },
            {
                name  => "first",
                iters => 500,
            },
        ],
        undef(),
        'Basic test',
    );
}
 
{
    # TEST*$test_based_on_data
    test_based_on_data(
        [
            {
                name => "first",
                data => [ 50_000, 100_000, 100_000, 1_000_000, 2_000_000 ],
            },
            {
                name => "second",
                data => [ 100, 200, 200, 300, 300 ],
            },
            {

t/optimize-multiple-full-test.t  view on Meta::CPAN

134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
            },
        ],
        {
            first => 1000,
        },
        'Test the stats_factors',
    );
}
 
{
    # TEST*$test_based_on_data
    test_based_on_data(
        [
            {
                name => "first",
                data => [ 50_000, 99_500, 100_000, 1_000_000, 2_000_000 ],
            },
            {
                name => "second",
                data => [ 100, 200, 200, 300, 300 ],
            },
            {

t/optimize-multiple-full-test.t  view on Meta::CPAN

169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
            },
        ],
        {
            first => 1000,
        },
        'Test fractional stats due to stats_factors',
    );
}
 
{
    # TEST*$test_based_on_data
    test_based_on_data(
        [
            {
                name => "first",
                data => [ 50_000, 99_500, 100_000, -1, -1, ],
            },
            {
                name => "second",
                data => [ 100, 200, 200, 300, 300 ],
            },
            {

t/style-trailing-space.t  view on Meta::CPAN

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/perl
 
use strict;
 
 
eval "use Test::TrailingSpace";
if ($@)
{
    plan skip_all => "Test::TrailingSpace required for trailing space test.";
}
else
{
    plan tests => 1;
}
 
my $finder = Test::TrailingSpace->new(
    {
        root           => '.',
        filename_regex =>
qr/(?:(?:\.(?:t|pm|pl|PL|yml|json|arc|vim))|README|Changes|LICENSE)\z/,
    },
);

xt/author/eol.t  view on Meta::CPAN

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
use strict;
 
# this test was generated with Dist::Zilla::Plugin::Test::EOL 0.19
 
use Test::More 0.88;
 
my @files = (
    'bin/optimize-game-ai-multi-tasking',
    'lib/AI/Pathfinding/OptimizeMultiple.pm',
    'lib/AI/Pathfinding/OptimizeMultiple/App/CmdLine.pm',
    'lib/AI/Pathfinding/OptimizeMultiple/DataInputObj.pm',
    'lib/AI/Pathfinding/OptimizeMultiple/IterState.pm',
    'lib/AI/Pathfinding/OptimizeMultiple/PostProcessor.pm',
    'lib/AI/Pathfinding/OptimizeMultiple/Scan.pm',
    'lib/AI/Pathfinding/OptimizeMultiple/ScanRun.pm',
    'lib/AI/Pathfinding/OptimizeMultiple/SimulationResults.pm',
    't/00-compile.t',
    't/cmdline-app.t',
    't/optimize-multiple-full-test.t',
    't/style-trailing-space.t'
);
 
eol_unix_ok($_, { trailing_whitespace => 1 }) foreach @files;
done_testing;

xt/author/no-tabs.t  view on Meta::CPAN

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
use strict;
 
# this test was generated with Dist::Zilla::Plugin::Test::NoTabs 0.15
 
use Test::More 0.88;
 
my @files = (
    'bin/optimize-game-ai-multi-tasking',
    'lib/AI/Pathfinding/OptimizeMultiple.pm',
    'lib/AI/Pathfinding/OptimizeMultiple/App/CmdLine.pm',
    'lib/AI/Pathfinding/OptimizeMultiple/DataInputObj.pm',
    'lib/AI/Pathfinding/OptimizeMultiple/IterState.pm',
    'lib/AI/Pathfinding/OptimizeMultiple/PostProcessor.pm',
    'lib/AI/Pathfinding/OptimizeMultiple/Scan.pm',
    'lib/AI/Pathfinding/OptimizeMultiple/ScanRun.pm',
    'lib/AI/Pathfinding/OptimizeMultiple/SimulationResults.pm',
    't/00-compile.t',
    't/cmdline-app.t',
    't/optimize-multiple-full-test.t',
    't/style-trailing-space.t'
);
 
notabs_ok($_) foreach @files;
done_testing;

xt/release/cpan-changes.t  view on Meta::CPAN

1
2
3
4
5
6
7
8
9
10
use strict;
 
# this test was generated with Dist::Zilla::Plugin::Test::CPAN::Changes 0.012
 
use Test::More 0.96 tests => 1;
subtest 'changes_ok' => sub {
    changes_file_ok('Changes');
};

xt/release/trailing-space.t  view on Meta::CPAN

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!perl
 
use strict;
 
 
eval "use Test::TrailingSpace";
if ($@)
{
   plan skip_all => "Test::TrailingSpace required for trailing space test.";
}
else
{
   plan tests => 1;
}
 
# TODO: add .pod, .PL, the README/Changes/TODO/etc. documents and possibly
# some other stuff.
my $finder = Test::TrailingSpace->new(
   {
       root => '.',
       filename_regex => qr#(?:\.(?:t|pm|pl|xs|c|h|txt|pod|PL)|README|Changes|TODO|LICENSE)\z#,
   },
);



( run in 0.720 second using v1.01-cache-2.11-cpan-c6e0e5ac2a7 )