summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordoy <doy@tozt.net>2009-01-14 21:54:47 -0500
committerdoy <doy@tozt.net>2009-01-14 21:54:47 -0500
commitcf4fcd5f358fac448a6c7705f15a8612429bbe51 (patch)
tree89bcd5730e4cb5f9133fab2f0b7dc3db1d336b45
parent94a9a6a179e48f2d98ecc2954cd33ec6e7f5c10a (diff)
downloadbot-games-cf4fcd5f358fac448a6c7705f15a8612429bbe51.tar.gz
bot-games-cf4fcd5f358fac448a6c7705f15a8612429bbe51.zip
use Bot::Games::OO rather than Moose directly
-rw-r--r--lib/Bot/Games/Game.pm4
-rw-r--r--lib/Bot/Games/Game/24.pm4
-rw-r--r--lib/Bot/Games/Game/Ghost.pm4
-rw-r--r--lib/Bot/Games/Game/Ghostlike.pm6
-rw-r--r--lib/Bot/Games/Game/Spook.pm4
-rw-r--r--lib/Bot/Games/Game/Superghost.pm4
-rw-r--r--lib/Bot/Games/Game/Xghost.pm4
7 files changed, 14 insertions, 16 deletions
diff --git a/lib/Bot/Games/Game.pm b/lib/Bot/Games/Game.pm
index 108e65f..f67538f 100644
--- a/lib/Bot/Games/Game.pm
+++ b/lib/Bot/Games/Game.pm
@@ -1,6 +1,6 @@
#!/usr/bin/perl
package Bot::Games::Game;
-use Moose;
+use Bot::Games::OO;
use MooseX::AttributeHelpers;
use DateTime;
@@ -42,7 +42,7 @@ sub turn { "Games must provide a turn method" }
after turn => sub { shift->last_turn_time(DateTime->now) };
__PACKAGE__->meta->make_immutable;
-no Moose;
+no Bot::Games::OO;
no MooseX::AttributeHelpers;
1;
diff --git a/lib/Bot/Games/Game/24.pm b/lib/Bot/Games/Game/24.pm
index ef87734..8580d7b 100644
--- a/lib/Bot/Games/Game/24.pm
+++ b/lib/Bot/Games/Game/24.pm
@@ -1,6 +1,6 @@
#!/usr/bin/perl
package Bot::Games::Game::24;
-use Moose;
+use Bot::Games::OO;
extends 'Bot::Games::Game';
has '+help' => (
@@ -94,6 +94,6 @@ sub _evaluate {
}
__PACKAGE__->meta->make_immutable;
-no Moose;
+no Bot::Games::OO;
1;
diff --git a/lib/Bot/Games/Game/Ghost.pm b/lib/Bot/Games/Game/Ghost.pm
index 1268e45..52ad2d0 100644
--- a/lib/Bot/Games/Game/Ghost.pm
+++ b/lib/Bot/Games/Game/Ghost.pm
@@ -1,6 +1,6 @@
#!/usr/bin/perl
package Bot::Games::Game::Ghost;
-use Moose;
+use Bot::Games::OO;
extends 'Bot::Games::Game::Ghostlike';
has '+help' => (
@@ -14,6 +14,6 @@ sub valid_move {
}
__PACKAGE__->meta->make_immutable;
-no Moose;
+no Bot::Games::OO;
1;
diff --git a/lib/Bot/Games/Game/Ghostlike.pm b/lib/Bot/Games/Game/Ghostlike.pm
index 619cdb9..9ebbe89 100644
--- a/lib/Bot/Games/Game/Ghostlike.pm
+++ b/lib/Bot/Games/Game/Ghostlike.pm
@@ -1,8 +1,6 @@
#!/usr/bin/perl
-use strict;
-use warnings;
package Bot::Games::Game::Ghostlike;
-use Moose;
+use Bot::Games::OO;
use Games::Word::Wordlist;
extends 'Bot::Games::Game';
@@ -127,6 +125,6 @@ sub _current_player_index {
}
__PACKAGE__->meta->make_immutable;
-no Moose;
+no Bot::Games::OO;
1;
diff --git a/lib/Bot/Games/Game/Spook.pm b/lib/Bot/Games/Game/Spook.pm
index 626bada..74a44e6 100644
--- a/lib/Bot/Games/Game/Spook.pm
+++ b/lib/Bot/Games/Game/Spook.pm
@@ -1,6 +1,6 @@
#!/usr/bin/perl
package Bot::Games::Game::Spook;
-use Moose;
+use Bot::Games::OO;
use Games::Word qw/is_subpermutation/;
extends 'Bot::Games::Game::Ghostlike';
@@ -24,6 +24,6 @@ sub valid_word_from_state {
}
__PACKAGE__->meta->make_immutable;
-no Moose;
+no Bot::Games::OO;
1;
diff --git a/lib/Bot/Games/Game/Superghost.pm b/lib/Bot/Games/Game/Superghost.pm
index b286c93..ae4438a 100644
--- a/lib/Bot/Games/Game/Superghost.pm
+++ b/lib/Bot/Games/Game/Superghost.pm
@@ -1,6 +1,6 @@
#!/usr/bin/perl
package Bot::Games::Game::Superghost;
-use Moose;
+use Bot::Games::OO;
extends 'Bot::Games::Game::Ghostlike';
has '+help' => (
@@ -15,6 +15,6 @@ sub valid_move {
}
__PACKAGE__->meta->make_immutable;
-no Moose;
+no Bot::Games::OO;
1;
diff --git a/lib/Bot/Games/Game/Xghost.pm b/lib/Bot/Games/Game/Xghost.pm
index 5cb6695..8aeabb2 100644
--- a/lib/Bot/Games/Game/Xghost.pm
+++ b/lib/Bot/Games/Game/Xghost.pm
@@ -1,6 +1,6 @@
#!/usr/bin/perl
package Bot::Games::Game::Xghost;
-use Moose;
+use Bot::Games::OO;
use Games::Word qw/is_substring/;
extends 'Bot::Games::Game::Ghostlike';
@@ -16,6 +16,6 @@ sub valid_move {
}
__PACKAGE__->meta->make_immutable;
-no Moose;
+no Bot::Games::OO;
1;