Move player into perl directory and add README.md
This commit is contained in:
parent
1af818a0b5
commit
2d5f34559c
2 changed files with 7 additions and 3 deletions
4
README.md
Normal file
4
README.md
Normal file
|
@ -0,0 +1,4 @@
|
|||
ttrts-players
|
||||
=============
|
||||
|
||||
Small repository for ttrts players
|
|
@ -4,10 +4,10 @@ use warnings;
|
|||
use Term::ANSIColor;
|
||||
|
||||
# From http://perlmaven.com/how-to-create-a-perl-module-for-code-reuse
|
||||
# expect ttrts perl module in a neighboring perl/ dir
|
||||
# expect ttrts perl module in cwd
|
||||
use File::Basename qw(dirname);
|
||||
use Cwd qw(abs_path);
|
||||
use lib dirname(abs_path($0))."/perl";
|
||||
use lib dirname(abs_path($0));
|
||||
|
||||
# Use our ttrts perl library
|
||||
use ttrts;
|
||||
|
@ -101,4 +101,4 @@ while ( 1 )
|
|||
|
||||
$turn++;
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue