Permalink
Browse files

fix logic error when checking if new game

  • Loading branch information...
1 parent 6a420aa commit 2c13278d76111e91624884ce5e23836cb2ce1ff6 @leedo committed May 17, 2010
Showing with 5 additions and 5 deletions.
  1. +1 −0 .gitignore
  2. +1 −1 app.psgi
  3. +1 −2 lib/Game/LL/Board.pm
  4. +2 −2 static/css/wwf.css
View
@@ -0,0 +1 @@
+ll.db
View
@@ -2,7 +2,7 @@ use Plack::Builder;
use Game::LL;
builder {
- enable "Session";
+ enable "Session", store => 'File';
enable "Static", path => sub {s!^/static/!!}, root => "./static";
Game::LL->new->to_app;
}
View
@@ -113,7 +113,6 @@ sub play_letters {
$self->grid($clone);
return $score;
}
- $self->errormsg("Invalid word");
return 0;
}
@@ -138,7 +137,7 @@ sub check_grid {
(grep {$_->[1] == $x and $_->[2] == $y} @letters) ? $pointed_word = 1 : $connected = 1;
}
elsif ($current_word and length $current_word > 1) {
- if (!$connected and !self->started) {
+ if (!$connected and $self->started) {
$error = 1;
$self->errormsg("Word is not connected!");
}
View
@@ -3,11 +3,11 @@ body {
font-size: 14px;
margin: 0px;
padding: 0px;
- background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#ccc), to(#eee));
+ background: #ccc;
}
html {
- height: 100%;
+ background: #ccc;
}
a {

0 comments on commit 2c13278

Please sign in to comment.