line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Karel; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
15990
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
29
|
|
4
|
1
|
|
|
1
|
|
3
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
26
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
403
|
use Karel::Robot; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
35
|
|
7
|
1
|
|
|
1
|
|
7
|
use Karel::Grid; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
67
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=encoding utf-8 |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head1 NAME |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
Karel - Learn programming with a robot that understands few simple |
14
|
|
|
|
|
|
|
commands. |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head1 VERSION |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
Version 0.04 |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=cut |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
our $VERSION = '0.04'; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 SYNOPSIS |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
This is still work in progress. The simplest text UI is present, you |
28
|
|
|
|
|
|
|
can run it with |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
perl -MKarel::UI::Text -we 'Karel::UI::Text::main()' |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 AUTHOR |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
E. Choroba, C<< >> |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 BUGS |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
Please report any bugs or feature requests to the GitHub repository: |
39
|
|
|
|
|
|
|
L. |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 SUPPORT |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
You can find documentation for this module with the perldoc command. |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
perldoc Karel |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
You can also look for information at: |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=over 4 |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=item * Meta CPAN |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
L |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=item * AnnoCPAN: Annotated CPAN documentation |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
L |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=item * CPAN Ratings |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
L |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=item * Search CPAN |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
L |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=back |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head1 ACKNOWLEDGEMENTS |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
Karel Čapek, the author of R.U.R. (1920). |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
Copyright 2015 - 2016 E. Choroba. |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it |
80
|
|
|
|
|
|
|
under the terms of the the Artistic License (2.0). You may obtain a |
81
|
|
|
|
|
|
|
copy of the full license at: |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
L |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
Any use, modification, and distribution of the Standard or Modified |
86
|
|
|
|
|
|
|
Versions is governed by this Artistic License. By using, modifying or |
87
|
|
|
|
|
|
|
distributing the Package, you accept this license. Do not use, modify, |
88
|
|
|
|
|
|
|
or distribute the Package, if you do not accept this license. |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
If your Modified Version has been derived from a Modified Version made |
91
|
|
|
|
|
|
|
by someone other than you, you are nevertheless required to ensure that |
92
|
|
|
|
|
|
|
your Modified Version complies with the requirements of this license. |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
This license does not grant you the right to use any trademark, service |
95
|
|
|
|
|
|
|
mark, tradename, or logo of the Copyright Holder. |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
This license includes the non-exclusive, worldwide, free-of-charge |
98
|
|
|
|
|
|
|
patent license to make, have made, use, offer to sell, sell, import and |
99
|
|
|
|
|
|
|
otherwise transfer the Package with respect to any patent claims |
100
|
|
|
|
|
|
|
licensable by the Copyright Holder that are necessarily infringed by the |
101
|
|
|
|
|
|
|
Package. If you institute patent litigation (including a cross-claim or |
102
|
|
|
|
|
|
|
counterclaim) against any party alleging that the Package constitutes |
103
|
|
|
|
|
|
|
direct or contributory patent infringement, then this Artistic License |
104
|
|
|
|
|
|
|
to you shall terminate on the date that such litigation is filed. |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER |
107
|
|
|
|
|
|
|
AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. |
108
|
|
|
|
|
|
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR |
109
|
|
|
|
|
|
|
PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY |
110
|
|
|
|
|
|
|
YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR |
111
|
|
|
|
|
|
|
CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR |
112
|
|
|
|
|
|
|
CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, |
113
|
|
|
|
|
|
|
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
=cut |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
__PACKAGE__ |