<%-- Copyright (c) 2012, Andy Janata All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --%> <%-- The main game page. This is almost entirely static HTML, other than ensuring that a session is created for the user now. @author Andy Janata (ajanata@socialgamer.net) --%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> <%@ page import="javax.servlet.http.HttpSession" %> <% // Ensure a session exists for the user. @SuppressWarnings("unused") HttpSession hSession = request.getSession(true); %> Pretend You're Xyzzy <%-- cah must be first, ajax must be before app. app probably has to be last. --%> <%-- TODO make this be dynamic with looking at the filesystem and using jquery --%> <%-- except that is nontrivial thanks to dependency ordering -_- --%> <%--

Pretend You're Xyzzy is known to have graphical glitches in $BROWSER_NAME. The game should work, but it looks much better in Google Chrome.

We will not bug you about this again after you dismiss this dialog.

--%>
Having trouble logging in? Clear your cache. Nickname:
Game ### status
Goal: / Cards:
Host: host
Players ( of ): host, player1, player2
The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
Waiting for server...
The black card for this round is:
The white cards played this round are:
The previous round was won by .
Your Hand
PlayerName
0 Awesome Points Status
Round winner:
Only the game host can change options.

Game options:



You must click outside the box to apply the password.