Commit Graph

133 Commits

Author SHA1 Message Date
Andy Janata f4ef1b3521 make the hand card scaling use the same algorithm as the round cards, to prevent them from getting larger than 100% scale 2012-02-07 16:31:56 -08:00
Andy Janata 463432e369 Gray out the Card Czar's hand and display a message over it. 2012-02-07 14:15:51 -08:00
Andy Janata 9a9202e1ce add source download link 2012-02-06 15:11:44 -08:00
Andy Janata 0ff6887e8a remove all absolute paths from classpath and move all libs into web-inf/lib 2012-02-06 15:04:37 -08:00
Andy Janata d9d58958bb add a README for github 2012-02-06 14:57:54 -08:00
Andy Janata 29388bad2c add license overview file 2012-02-06 14:54:31 -08:00
Andy Janata 88b68c87b6 comment ALL the files! 2012-02-06 14:00:24 -08:00
Andy Janata 4ddc0fd7b7 add javadocs for hibernate 2012-02-06 13:58:45 -08:00
Andy Janata d4368c554a add stats page for munin support 2012-02-02 15:37:21 -08:00
Andy Janata dbd8d8b755 fix encoding in admin xml tag 2012-02-02 14:57:39 -08:00
Andy Janata 9336376e1e I did something that made eclipse make a new prefs file... 2012-02-02 14:48:05 -08:00
Andy Janata 9af04612a6 make hibernate not spit its queries out now, we don't need that anymore 2012-02-02 14:47:50 -08:00
Andy Janata 4d5fddd293 add 2-clause bsd-style license to source files 2012-02-02 14:47:23 -08:00
Andy Janata 828def7cf8 delete files used for testing stuff ages ago 2012-02-02 14:46:46 -08:00
Andy Janata a35c62bd16 make test-only dependencies not trigger a warning that they aren't in runtime classpath 2012-02-01 23:29:50 -08:00
Andy Janata 6d8339fb3a database creation script for cards 2012-02-01 23:20:34 -08:00
Andy Janata 7e0614531d message about not opening the game more than once in the same browser 2012-02-01 14:27:56 -08:00
Andy Janata 582537b0a1 todo cleanup for multi-play 2012-02-01 14:26:20 -08:00
Andy Janata b5cb45353c - make the logo on the cards from css instead of images
- fix reshuffle notifications not delivering to client properly
- fix not actually putting "draw 2" cards into the players' hands
2012-01-31 20:22:07 -08:00
Andy Janata a493b917ed rudimentary support for pick X and draw X cards. it looks completely wrong on the client during the play phase. does not display the annotations to the player yet either 2012-01-31 17:59:53 -08:00
Andy Janata 39216edca8 hours are not days 2012-01-31 17:58:46 -08:00
Andy Janata 6ed7eb60d5 pick a random judge to start the game 2012-01-31 00:01:52 -08:00
Andy Janata 266b2646da add another item to the index page 2012-01-30 23:54:36 -08:00
Andy Janata dbb802bb28 delay 5ms after noticing the user has a queued message before returning it in case other messages arrive immediately thereafter 2012-01-30 23:54:05 -08:00
Andy Janata 7112825580 - don't send player leaving game event to the player that left the game
- broadcast refresh game list event when player leaves or joins a game
2012-01-30 23:53:37 -08:00
Andy Janata a5f82eb08e TODO cleanup 2012-01-30 23:53:00 -08:00
Andy Janata 83a807f4b8 - reorder stuff in admin.jsp
- add my global ip address to admin whitelist
- add kick functionality to admin.jsp
- admin.jsp redirects to itself after processing actions to avoid refreshing re-processing the action
- ConnectedUsers invalidates the user when removing it
2012-01-30 23:52:45 -08:00
Andy Janata 987c01cc5a - make a config js file for URIs and debug mode
- clean up the ordering of stuff in game.jsp
- only back off 1ms after a successful longpoll, but do the normal backoff delays after error
2012-01-30 23:49:46 -08:00
Andy Janata f08785cdaa fix tests 2012-01-30 16:44:30 -08:00
Andy Janata 93e36fbc82 disable silent client-side logging for "release" 2012-01-30 16:36:07 -08:00
Andy Janata e373d72c85 remove logic that disabled the Join game button if it wasn't a lobby, since you can always join now 2012-01-30 16:35:25 -08:00
Andy Janata 2d5e9d18c0 - discard cards after they are used, so that they can be reshuffled if more cards are required (hasn't been tested)
- much better handling when users leave the game:
  - put their hand in the discard pile
  - if they played this round, put that card in the discard pile and remove them from the played players list
  - if they were supposed to play this round, remove them from the players list
  - if they were judge, return all played cards to players and move to the next judge
  - if they weren't judge and were lower in judging order, fix the judge pointer
- add a goal to the game (8 points for now, hard-coded)
- keep track of which players are supposed to play this round so players joining and leaving don't affect the game progressing
2012-01-30 16:35:06 -08:00
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