Andy Janata
45312306c9
update vsTerminus's IP address for admin, and fix cardsets.jsp for new jquery version
2012-12-07 18:46:46 -08:00
Andy Janata
c66ffa6e1f
Now fix the chat box font.
2012-10-27 08:51:12 -07:00
Andy Janata
11a343eb75
I hate CSS. "Fix" the game hand display. Not sure why it got broken, had to be related to using tabs.
2012-10-27 08:50:07 -07:00
Andy Janata
22156e90ac
add tabs, move user preferences to a tab, and fix the chat ui to fit the tab. it gets very bad at small window sizes though
2012-10-15 20:23:37 -07:00
Andy Janata
54974836c8
I don't like editing library files I'm pulling from elsewhere, but those JS errors in Eclipse were getting annoying.
2012-10-13 13:48:57 -07:00
Andy Janata
63b8f3eaaf
Player and score limit options dynamically generated. Allow up to 69 point score goal.
2012-10-11 21:40:41 -07:00
Andy Janata
de331e738a
- User preferences. Can turn off (dis)connect messages except for kicks/bans ( fixes #9 ), and can ignore chat from specific users (except admins). Also remembers the user's name. All of these are stored in js cookies.
...
- Update jQuery and jQuery Cookie plugin, and add jQuery UI.
2012-10-11 21:18:40 -07:00
Andy Janata
c6c6feb49f
Display non-passworded games before passworded games. Fixes #20 .
2012-10-11 20:05:06 -07:00
Andy Janata
842598fd46
Fix name of JavascriptConfigServlet
2012-10-11 19:51:46 -07:00
Andy Janata
3b454c4552
Generate cah.config.js via a Servlet. Idea from d4472c1238/src/net/socialgamer/cah/servlets/JavascriptConfig.java
2012-10-11 19:49:16 -07:00
Andy Janata
68998c3244
Remove defunct TestServlet from web.xml.
2012-10-11 19:31:31 -07:00
Andy Janata
b0b1f5fbf2
Fix @Nullable annotations.
2012-10-11 19:31:17 -07:00
Andy Janata
ec1e85ec5d
Check X-Forwarded-For on the admin pages. Fixes #22 .
2012-10-01 20:12:14 -07:00
Andy Janata
b57ee2de7e
add google analytics. why did I wait so long?
2012-09-22 07:51:23 -07:00
Andy Janata
86703070ec
show brief welcome banner on nickbox screen
2012-09-09 22:08:24 -07:00
Andy Janata
554510ea3a
fix addcard
2012-09-09 22:08:06 -07:00
Andy Janata
38224cf81a
Chat flood protection. Limits users to 5 messages per 15 seconds currently.
2012-08-28 23:00:47 -07:00
Andy Janata
7fccd69b15
Kicks and bans.
...
Admin chat in blue.
Chat commands (/names, /kick, /ban to start).
Close Hibernate session after loading card sets when a user connects -- Oops!
Games have their own Hibernate session for their duration, and this is used instead of a per-request session for loading card sets when changing options.
Fix changing game options without having a card set selected.
2012-08-20 22:41:06 -07:00
Andy Janata
69ec34e072
Allow up to 20 players per game.
2012-08-20 22:39:06 -07:00
Andy Janata
90788982c0
chat messages from admin users show up in blue. admins are defined by IP address for now.
2012-08-20 20:03:52 -07:00
Andy Janata
7e577add21
close hibernate Session in addcard and cardsets
2012-07-14 15:04:11 -07:00
Andy Janata
2dbdc1c2c7
index changelog
2012-07-07 15:06:15 -07:00
Andy Janata
7cf9413861
- add card set support to the game itself
...
- add watermark field to cards to indicate what to display over the logo
- display said watermark
2012-07-07 15:01:33 -07:00
Andy Janata
7f8c2f9dbf
fix eclipse warning
2012-07-07 14:05:44 -07:00
Andy Janata
5bba53ef7d
client parses CardSet data the server sends it when connecting
2012-07-07 10:48:22 -07:00
Andy Janata
973f18ea80
return list of card sets during first load
2012-07-07 10:21:14 -07:00
Andy Janata
9f57d3ad94
add "base deck" option to CardSet
2012-07-07 10:19:25 -07:00
Andy Janata
8d3a393de3
card sets, and a way to edit them
2012-07-01 23:55:12 -07:00
Andy Janata
9ef0d0eae0
page to add new cards, and let somebody else's IP address in since he was helping
2012-07-01 23:54:53 -07:00
Andy Janata
e01359df45
don't pull in the new cards that aren't in v1 or v2, oops
2012-07-01 23:54:29 -07:00
Andy Janata
b06ad5d5d5
fix z-order on Confirm button to always be on top
2012-07-01 23:52:52 -07:00
Andy Janata
269fd5b20a
remove bit about the chat log not working right in opera, because I just fixed it (derp)
2012-03-23 00:05:03 -07:00
Andy Janata
3a81301c93
change log in index
2012-03-23 00:01:47 -07:00
Andy Janata
bc4f0818f1
Fix the log in Opera. Fixes #5 .
2012-03-22 23:38:18 -07:00
Andy Janata
97a822db6d
Add in-game options viewing to index page news. The server already disallows changing options in the middle of a game.
2012-03-18 21:39:31 -07:00
Andy Janata
21e0aea9a3
add button to display game options in middle of game. do not allow host to change options in middle of game (on client, server should check this too)
2012-03-18 21:38:24 -07:00
Andy Janata
5bb9690ea4
add game passwords to index page
2012-03-18 21:22:56 -07:00
Andy Janata
315549d87f
game passwords, and display more game information in the lobby list
2012-03-18 21:20:48 -07:00
Andy Janata
14746a6a69
update index page with new news
2012-03-18 11:45:27 -07:00
Andy Janata
a1c2bbce80
allow to choose between first version cards, second version cards, or all cards at once.
2012-03-17 20:17:32 -07:00
Andy Janata
c6659b3abb
display the total duration of the current play timer. will make it count later
2012-03-16 18:35:13 -07:00
Andy Janata
a8e7273e13
increase play timers.
...
fix play timer for people who have played a card but not all required cards (by removing their cards and returning them)
2012-03-16 18:34:59 -07:00
Andy Janata
1237d4c8a2
move round cards up the z-order again
2012-03-16 18:34:20 -07:00
Andy Janata
dd117f05d2
fix constants for test
2012-03-16 17:05:27 -07:00
Andy Janata
f2b5f2b623
PYX, not PYZ, you idiot.
2012-03-16 17:00:01 -07:00
Andy Janata
e0391b8d4e
skip and kick idle players
2012-03-16 16:59:50 -07:00
Andy Janata
95fe597184
add intermission after judge leaves game. it looks weird, and acts a bit oddly, especially for the previous judge: they can pick a winner but it won't let them choose on the server. still I think this is better than the old way of just starting the next round immediately.
2012-03-15 23:43:43 -07:00
Andy Janata
27a58856d8
fix host options with the card set hidden
2012-03-15 20:19:24 -07:00
Andy Janata
a6f1a139be
game host can configure maximum players and score goal
2012-03-15 20:06:23 -07:00
Andy Janata
2332c68f75
add a subheading to the index page that this is a cah clone
2012-03-15 14:04:12 -07:00
Andy Janata
a679a7a36c
- confirm leaving game
...
- initial game options. it never displays it right now since it isn't done
2012-03-15 13:50:42 -07:00
Andy Janata
5fa3bf5ece
confirm logging out
2012-03-15 13:50:24 -07:00
Andy Janata
79cf13c8e2
change github url
2012-03-15 11:15:28 -07:00
Andy Janata
2e0168e7ce
Cards Against Humanity -> Pretend You're Xyzzy
2012-03-15 10:14:32 -07:00
Andy Janata
1b465bad8f
fix the servlet mappings in web.xml. make everything uncachable.
2012-03-13 00:42:07 -07:00
Andy Janata
2931fb7492
add TODO about cards blanking when players join and leave game
2012-03-12 22:20:17 -07:00
Andy Janata
2d770e4098
update home page information
2012-03-12 22:20:04 -07:00
Andy Janata
349154367c
add something to set maximum cache age of an hour on static files. hopefully this is sufficient
2012-03-12 22:19:57 -07:00
Andy Janata
add5386127
POSSIBLY BREAKING CHANGE: change all the over-the-wire Constant values to shorter things.
2012-03-12 21:06:35 -07:00
Andy Janata
ae5bc1d594
fix some problems with using hard-coded strings instead of values from Constants
2012-03-12 21:05:43 -07:00
Andy Janata
2e62708ea6
change long poll server-side returning to 20+5 seconds, client-side timeout to 45 seconds, and ping checking to 45 seconds. this should hopefully helpe with people that just close the window.
...
increase the maximum number of messages returned per poll to 10 for no particular reason :)
2012-03-12 21:05:19 -07:00
Andy Janata
57556c2f95
set the played cards z-index so hopefully it will always show over hand
2012-03-12 20:18:28 -07:00
Andy Janata
e614a0da57
add a test for over-the-wire uniqueness for Constants, with an annotation to allow intentional duplication.
2012-03-12 20:18:24 -07:00
Andy Janata
2d42710270
don't send blank chats to the server
2012-03-12 19:49:36 -07:00
Andy Janata
f9b6de36d0
jsdoc cleanup
2012-02-20 12:34:26 -08:00
Andy Janata
02e2715809
Don't overwrite displaying the last round's black card when a new black card is dealt, if we are looking at the last round's results. Fixes #4 .
2012-02-20 11:59:47 -08:00
Andy Janata
3058cf9498
- the re-centering of "you are czar" hand overlay wasn't working, so I removed it.
...
- ability to show the last round. this updates as soon as a new round winner is selected, and is tracked entirely on the client
2012-02-07 19:30:30 -08:00
Andy Janata
89da813b28
refactor around the card resize code so it's only in one place
2012-02-07 17:06:23 -08:00
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
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
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
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
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
266b2646da
add another item to the index page
2012-01-30 23:54:36 -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
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
e323a32ce8
formatting
2012-01-30 16:30:40 -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
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