Andy Janata
ee327639eb
add a bunch of text to the index page
2012-01-30 16:31:08 -08:00
Andy Janata
fd7fd9b586
fix a test
2012-01-30 16:30:46 -08:00
Andy Janata
e323a32ce8
formatting
2012-01-30 16:30:40 -08:00
Andy Janata
3fd597b580
kill the next round timer when a game resets due to losing players
2012-01-30 00:36:52 -08:00
Andy Janata
0f14cb781c
IE doesn't have console.debug, and it also is a pain to log with an object.
2012-01-30 00:36:21 -08:00
Andy Janata
84373a5453
- disable the confirm card button for the judge during the intermission
...
- don't say "points" for 1 point
2012-01-30 00:35:56 -08:00
Andy Janata
6cdb68efc2
- "points" -> "Awesome Points"
...
- move divs around and mess with the styling and js to make vertical resizing, and resizing of the chat in general, work
2012-01-30 00:35:27 -08:00
Andy Janata
259b323e1c
"Judge" -> "Card Czar"
2012-01-30 00:35:11 -08:00
Andy Janata
e88a5238b7
add some things to the welcome page
2012-01-30 00:33:11 -08:00
Andy Janata
bc2e7501cc
reset the judge index when the game resets
2012-01-29 17:14:28 -08:00
Andy Janata
e3ac81705e
false-start of doing admin via ajax, would require a lot more work on the admin client to actually do it this way
2012-01-29 17:14:17 -08:00
Andy Janata
9a476e4f81
move index.jsp to game.jsp and add a new index.jsp that has a quick overview
2012-01-29 17:13:51 -08:00
Andy Janata
a26221c2bb
- admin can toggle verbose logging of all requests on and off
...
- admin page shows user hostname
- servlets log request and response if logging is enabled
2012-01-29 17:13:31 -08:00
Andy Janata
5e95299801
replace the border on the winning card, not add another one
2012-01-28 23:33:21 -08:00
Andy Janata
0d2a43aedf
change charset in index.jsp
2012-01-28 00:50:02 -08:00
Andy Janata
237c4ccec2
add SILENT_DEBUG option, and make that log to the browser console
2012-01-28 00:49:50 -08:00
Andy Janata
8ad224edad
basic admin page, shows memory usage, uptime, and connected users
2012-01-28 00:49:32 -08:00
Andy Janata
65c92d8440
reduce round intermission time to 8 seconds
2012-01-27 17:19:36 -08:00
Andy Janata
ed9cec7ed7
don't add a blank card to the screen when a user switches to idle state unless the game is still in playing state
2012-01-27 17:01:51 -08:00
Andy Janata
0e11e59207
- judge can select card
...
- game goes to next round
2012-01-27 15:41:57 -08:00
Andy Janata
692f2057e9
pointer cursor for round white cards
2012-01-27 00:19:20 -08:00
Andy Janata
34c23b3a01
fix confirm selection button not enabling properly sometimes
2012-01-27 00:18:36 -08:00
Andy Janata
7a8da9bf72
wasn't actually sending the event type when moving a game back to the lobby, clients didn't know what to do
2012-01-27 00:15:07 -08:00
Andy Janata
d06e835ac4
add the zoom effect to round cards, and let the judge select a card
2012-01-27 00:14:48 -08:00
Andy Janata
6226558535
set response encoding to utf-8
2012-01-26 22:17:45 -08:00
Andy Janata
48976b4dc0
- change how the client's own card is displayed after playing it to avoid race condition
...
- show all white cards when switching to judging mode
2012-01-26 22:17:36 -08:00
Andy Janata
2e26e938e5
- reload the round white cards when page reloaded
...
- can't select a hand card after playing a card
2012-01-26 19:25:40 -08:00
Andy Janata
7600ec27de
- refactor game handlers a bit to add another abstract class that ensures the user requesting is in the game in question
...
- add play card handler. need to send the white card count down to users that refresh the page.
- ajax event handlers get the request object as well as the result object so the server doesn't have to send the game id back in a response
2012-01-26 18:07:39 -08:00
Andy Janata
6ed6bdb365
resize hand cards when resizing window.
...
fix font being fucking huge in firefox.
2012-01-25 00:03:41 -08:00
Andy Janata
f92258fb56
able to select and deselect cards in hand
2012-01-24 22:39:19 -08:00
Andy Janata
234b82afd2
- display black card in game
...
- display message indicating what the game is currently waiting for
- reload the black card when reloading page
- change the js constant generator to explain what the dummy things are for in the output
- add support for enums that need two user-visible values (specifically the game player state: the short message for the scoreboard and the long message telling the player what they need to do)
- hide the start game button after the game is started
- refactor game event longpoll handlers to use a helper that gets the game and reports an error if it can't
- game (should) reset to a lobby if it loses players to put it less than 3
2012-01-24 16:20:43 -08:00
Andy Janata
44153c549a
resize the cards when zooming them so the other cards flow
2012-01-23 23:13:40 -08:00
Andy Janata
363bfc1147
get rid of unneeded zindex hack
2012-01-23 23:04:52 -08:00
Andy Janata
3253be9530
comment out bad browser warning
2012-01-23 23:04:14 -08:00
Andy Janata
347dfb0b02
toString in QueuedMessage
2012-01-23 23:03:08 -08:00
Andy Janata
5915a3558d
- reload hand after reloading page
...
- use transform animation in all browsers to reduce complexity :(
2012-01-23 23:02:59 -08:00
Andy Janata
2f2d683384
fix card zoom in firefox and opera, and display a message that this looks better in chrome for those browsers the first time the page loads
2012-01-23 19:14:29 -08:00
Andy Janata
d41b06ffde
fix card scaling in ie, but the logo still is broken
2012-01-23 17:41:02 -08:00
Andy Janata
1f9d4722be
delete local game object after leaving game
2012-01-23 17:40:21 -08:00
Andy Janata
c73ce88646
deal cards to players when the game starts
2012-01-23 15:06:20 -08:00
Andy Janata
44dcc45c48
update the scoreboard when a player leaves or joins the game
2012-01-23 13:37:11 -08:00
Andy Janata
eec3ad81ca
- make currentGames be a list instead of a single object, just in case I do multiple games later
...
- add event handlers for leave and start game buttons
- leave game button works
2012-01-23 13:20:15 -08:00
Andy Janata
2ce38e4222
refactor to get a base abstract GameHandler since a bunch of handlers will need to get the game object
2012-01-23 12:52:33 -08:00
Andy Janata
e21fd8ed00
debug ajax responses to stdout, if new code uncommented
2012-01-22 23:58:59 -08:00
Andy Janata
8e3c1372dc
- fix formatting in css file
...
- add some templates for game lobbies
- client properly joins a game and shows the lobby!
- reconnect to in-progress game when refreshing page
2012-01-22 23:58:36 -08:00
Andy Janata
109a58444a
don't sanitize chat, instead use a text element to display chat and log messages
2012-01-22 23:54:58 -08:00
Andy Janata
922207736a
start working on in-game view
2012-01-21 17:34:18 -08:00
Andy Janata
8b6d171d66
fix warnings
2012-01-20 19:11:39 -08:00
Andy Janata
bd0c11fcf7
fix some alignment
2012-01-20 18:56:33 -08:00
Andy Janata
019505e0b4
make stuff more relative-size-friendly
2012-01-20 16:11:59 -08:00