summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordoy <doy@tozt.net>2008-12-20 03:24:01 -0500
committerdoy <doy@tozt.net>2008-12-20 03:24:01 -0500
commit950c53245c02d9c015b008e277abba8c524dc502 (patch)
treea23c3246dc2c9012e0e0a193a60750d9f01662c6
parentc7e51b0c38746f568e60b655a737fc19ef8ba0fa (diff)
downloadbot-games-950c53245c02d9c015b008e277abba8c524dc502.tar.gz
bot-games-950c53245c02d9c015b008e277abba8c524dc502.zip
make_immutable, no Moose
-rw-r--r--lib/Bot/Games.pm3
-rw-r--r--lib/Bot/Games/Game.pm4
-rw-r--r--lib/Bot/Games/Game/24.pm3
-rw-r--r--lib/Bot/Games/Game/Ghost.pm3
-rw-r--r--lib/Bot/Games/Game/Ghostlike.pm3
-rw-r--r--lib/Bot/Games/Game/Spook.pm3
-rw-r--r--lib/Bot/Games/Game/Superghost.pm3
-rw-r--r--lib/Bot/Games/Game/Xghost.pm3
8 files changed, 25 insertions, 0 deletions
diff --git a/lib/Bot/Games.pm b/lib/Bot/Games.pm
index 54fc813..9513874 100644
--- a/lib/Bot/Games.pm
+++ b/lib/Bot/Games.pm
@@ -116,4 +116,7 @@ sub _format {
return $to_print;
}
+__PACKAGE__->meta->make_immutable;
+no Moose;
+
1;
diff --git a/lib/Bot/Games/Game.pm b/lib/Bot/Games/Game.pm
index 184efa8..108e65f 100644
--- a/lib/Bot/Games/Game.pm
+++ b/lib/Bot/Games/Game.pm
@@ -41,4 +41,8 @@ has is_over => (
sub turn { "Games must provide a turn method" }
after turn => sub { shift->last_turn_time(DateTime->now) };
+__PACKAGE__->meta->make_immutable;
+no Moose;
+no MooseX::AttributeHelpers;
+
1;
diff --git a/lib/Bot/Games/Game/24.pm b/lib/Bot/Games/Game/24.pm
index 8dcab4e..df317c6 100644
--- a/lib/Bot/Games/Game/24.pm
+++ b/lib/Bot/Games/Game/24.pm
@@ -88,4 +88,7 @@ sub _evaluate {
return eval $expr;
}
+__PACKAGE__->meta->make_immutable;
+no Moose;
+
1;
diff --git a/lib/Bot/Games/Game/Ghost.pm b/lib/Bot/Games/Game/Ghost.pm
index 4d5d9c0..1268e45 100644
--- a/lib/Bot/Games/Game/Ghost.pm
+++ b/lib/Bot/Games/Game/Ghost.pm
@@ -13,4 +13,7 @@ sub valid_move {
return uc(substr($move, 0, -1)) eq $self->state;
}
+__PACKAGE__->meta->make_immutable;
+no Moose;
+
1;
diff --git a/lib/Bot/Games/Game/Ghostlike.pm b/lib/Bot/Games/Game/Ghostlike.pm
index 4576b2c..619cdb9 100644
--- a/lib/Bot/Games/Game/Ghostlike.pm
+++ b/lib/Bot/Games/Game/Ghostlike.pm
@@ -126,4 +126,7 @@ sub _current_player_index {
return 0;
}
+__PACKAGE__->meta->make_immutable;
+no Moose;
+
1;
diff --git a/lib/Bot/Games/Game/Spook.pm b/lib/Bot/Games/Game/Spook.pm
index bba3f41..1f2c5b7 100644
--- a/lib/Bot/Games/Game/Spook.pm
+++ b/lib/Bot/Games/Game/Spook.pm
@@ -15,4 +15,7 @@ sub valid_move {
&& length($self->state) + 1 == length($move);
}
+__PACKAGE__->meta->make_immutable;
+no Moose;
+
1;
diff --git a/lib/Bot/Games/Game/Superghost.pm b/lib/Bot/Games/Game/Superghost.pm
index 13502ed..b286c93 100644
--- a/lib/Bot/Games/Game/Superghost.pm
+++ b/lib/Bot/Games/Game/Superghost.pm
@@ -14,4 +14,7 @@ sub valid_move {
|| uc(substr($move, 1)) eq $self->state;
}
+__PACKAGE__->meta->make_immutable;
+no Moose;
+
1;
diff --git a/lib/Bot/Games/Game/Xghost.pm b/lib/Bot/Games/Game/Xghost.pm
index 2dbf532..5cb6695 100644
--- a/lib/Bot/Games/Game/Xghost.pm
+++ b/lib/Bot/Games/Game/Xghost.pm
@@ -15,4 +15,7 @@ sub valid_move {
&& length($self->state) + 1 == length($move);
}
+__PACKAGE__->meta->make_immutable;
+no Moose;
+
1;