Cards Against Humanity -> Pretend You're Xyzzy

This commit is contained in:
Andy Janata 2012-03-15 10:14:32 -07:00
parent 14dbf94b27
commit 2e0168e7ce
7 changed files with 27 additions and 24 deletions

2
README
View File

@ -1 +1 @@
Cards Against Humanity, server and web client. See WebContent/license.html for full details. Pretend You're Xyzzy, server and web client. See WebContent/license.html for full details.

View File

@ -39,7 +39,7 @@ HttpSession hSession = request.getSession(true);
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Cards Against Humanity</title> <title>Pretend You're Xyzzy</title>
<script type="text/javascript" src="js/jquery-1.7.1.js"></script> <script type="text/javascript" src="js/jquery-1.7.1.js"></script>
<script type="text/javascript" src="js/jquery.cookie.js"></script> <script type="text/javascript" src="js/jquery.cookie.js"></script>
<script type="text/javascript" src="js/QTransform.js"></script> <script type="text/javascript" src="js/QTransform.js"></script>
@ -66,7 +66,7 @@ HttpSession hSession = request.getSession(true);
<%-- <%--
<div id="browser" class="hide"> <div id="browser" class="hide">
<div id="browser_inner"> <div id="browser_inner">
<p>Cards Against Humanity is known to have graphical glitches in <p>Pretend You're Xyzzy is known to have graphical glitches in
<span id="browser_name">$BROWSER_NAME</span>. The game should work, <span id="browser_name">$BROWSER_NAME</span>. The game should work,
but it looks much better in <a href="http://google.com/chrome/">Google Chrome.</a></p> but it looks much better in <a href="http://google.com/chrome/">Google Chrome.</a></p>
<p>We will not bug you about this again after you dismiss this dialog.</p> <p>We will not bug you about this again after you dismiss this dialog.</p>
@ -76,6 +76,7 @@ HttpSession hSession = request.getSession(true);
--%> --%>
<div id="nickbox"> <div id="nickbox">
Having trouble logging in? Clear your cache.
Nickname: <input type="text" id="nickname" value="" maxlength="30" /> Nickname: <input type="text" id="nickname" value="" maxlength="30" />
<input type="button" id="nicknameconfirm" value="Set" /> <input type="button" id="nicknameconfirm" value="Set" />
<span id="nickbox_error" class="error"></span> <span id="nickbox_error" class="error"></span>
@ -138,7 +139,7 @@ HttpSession hSession = request.getSession(true);
</div> </div>
<div class="logo_3 logo_element"> <div class="logo_3 logo_element">
</div> </div>
<div class="logo_text">Cards Against Humanity</div> <div class="logo_text">Pretend You're Xyzzy</div>
</div> </div>
<div class="card_metadata"> <div class="card_metadata">
<div class="draw hide">DRAW <div class="card_number"></div></div> <div class="draw hide">DRAW <div class="card_number"></div></div>
@ -164,7 +165,7 @@ HttpSession hSession = request.getSession(true);
</div> </div>
<div class="logo_3 logo_element"> <div class="logo_3 logo_element">
</div> </div>
<div class="logo_text">Cards Against Humanity</div> <div class="logo_text">Pretend You're Xyzzy</div>
</div> </div>
</div> </div>
</div> </div>

View File

@ -33,9 +33,12 @@ to, for instance, display the number of connected players.
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Cards Against Humanity</title> <title>Pretend You're Xyzzy</title>
</head> </head>
<body> <body>
<h1>Pretend You're <dfn style="border-bottom: 1px dotted black"
title="Xyzzy is an Artificial Unintelligence bot. You'll be making more sense than him in this game.">
Xyzzy</dfn></h1>
<p> <p>
This webapp is still in development. There will be bugs, but hopefully they won't affect gameplay This webapp is still in development. There will be bugs, but hopefully they won't affect gameplay
very much. To assist with development, <strong>all traffic on this server <em>may</em> be very much. To assist with development, <strong>all traffic on this server <em>may</em> be
@ -53,8 +56,8 @@ to, for instance, display the number of connected players.
<li>This game was extensively tested in <a href="http://google.com/chrome">Google Chrome</a>. <li>This game was extensively tested in <a href="http://google.com/chrome">Google Chrome</a>.
It should work in all recent versions of major browsers, but it may not look 100% as intended. If It should work in all recent versions of major browsers, but it may not look 100% as intended. If
you find a major issue, please you find a major issue, please
<a href="mailto:ajanata@socialgamer.net?subject=Cards%20Against%20Humanity%20bug">email me</a> <a href="mailto:ajanata@socialgamer.net?subject=PYZ%20bug">email me</a> with a screenshot and the
with a screenshot and the name and version of the browser you are using, and I'll try to fix it. name and version of the browser you are using, and I'll try to fix it.
<ul> <ul>
<li>That having been said, the chat area doesn't work right at all in Opera. The game still <li>That having been said, the chat area doesn't work right at all in Opera. The game still
plays properly, but no log messages work. This is rather low on my to-do list as Opera isn't plays properly, but no log messages work. This is rather low on my to-do list as Opera isn't
@ -113,16 +116,15 @@ to, for instance, display the number of connected players.
<p> <p>
If the game seems to be in a weird state, refresh the page and it should take you back to where If the game seems to be in a weird state, refresh the page and it should take you back to where
you were. It would be helpful to take a screenshot and you were. It would be helpful to take a screenshot and
<a href="mailto:ajanata@socialgamer.net?subject=Cards%20Against%20Humanity%20bug">email it to <a href="mailto:ajanata@socialgamer.net?subject=PYZ%20bug">email it to me</a> along with a general
me</a> along with a general description of the problem and the time that it happened (include a description of the problem and the time that it happened (include a time zone please!).
time zone please!).
</p> </p>
<p> <p>
<input type="button" value="I have read the above; Take me to the game!" <input type="button" value="I have read the above; Take me to the game!"
onclick="window.location='game.jsp';" /> onclick="window.location='game.jsp';" />
</p> </p>
<p> <p>
Cards Against Humanity is available at Pretend You're Xyzzy is a Cards Against Humanity clone, which is available at
<a href="http://www.cardsagainsthumanity.com/">cardsagainsthumanity.com</a>, where you can buy it <a href="http://www.cardsagainsthumanity.com/">cardsagainsthumanity.com</a>, where you can buy it
or download and print it out yourself. It is distributed under a or download and print it out yourself. It is distributed under a
<a href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons - Attribution - <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons - Attribution -

View File

@ -22,7 +22,7 @@
*/ */
/** /**
* Main application for Cards Against Humanity. This only has to handle the initial nickname * Main application for Pretend You're Xyzzy. This only has to handle the initial nickname
* registration, the chat box, the logout button, and resizing the window. It should probably be * registration, the chat box, the logout button, and resizing the window. It should probably be
* split up into multiple files. * split up into multiple files.
* *

View File

@ -275,7 +275,7 @@ cah.card.BlackCard.prototype.setPick = function(pick) {
*/ */
cah.card.BlackCard.prototype.updateCardInfo_ = function() { cah.card.BlackCard.prototype.updateCardInfo_ = function() {
if (this.draw_ != 0 || this.pick_ != 1) { if (this.draw_ != 0 || this.pick_ != 1) {
$(".logo_text", this.faceUpElem_).text("CAH"); $(".logo_text", this.faceUpElem_).text("PYZ");
if (this.draw_ != 0) { if (this.draw_ != 0) {
$(".draw .card_number", this.faceUpElem_).text(this.draw_); $(".draw .card_number", this.faceUpElem_).text(this.draw_);
$(".draw", this.faceUpElem_).removeClass("hide"); $(".draw", this.faceUpElem_).removeClass("hide");
@ -290,7 +290,7 @@ cah.card.BlackCard.prototype.updateCardInfo_ = function() {
$(".pick", this.faceUpElem_).addClass("hide"); $(".pick", this.faceUpElem_).addClass("hide");
} }
} else { } else {
$(".logo_text", this.faceUpElem_).text("Cards Against Humanity"); $(".logo_text", this.faceUpElem_).text("Pretend You're Xyzzy");
} }
}; };

View File

@ -4,12 +4,12 @@
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Cards Against Humanity - License Information</title> <title>Pretend You're Xyzzy - License Information</title>
</head> </head>
<body> <body>
<h1>Cards Against Humanity game</h1> <h1>Pretend You're Xyzzy game</h1>
<p> <p>
Cards Against Humanity is available at Pretend You're Xyzzy is a Cards Against Humanity clone, which is available at
<a href="http://www.cardsagainsthumanity.com/">cardsagainsthumanity.com</a>, where you can buy <a href="http://www.cardsagainsthumanity.com/">cardsagainsthumanity.com</a>, where you can buy
it or download and print it out yourself. It is distributed under a <a it or download and print it out yourself. It is distributed under a <a
href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons - Attribution - href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons - Attribution -
@ -19,7 +19,7 @@
</p> </p>
<h1>Server and client game logic code.</h1> <h1>Server and client game logic code.</h1>
<p> <p>
Cards Against Humanity, Java server and JavaScript client, Copyright &copy; 2012, Andy Janata. Pretend You're Xyzzy, Java server and JavaScript client, Copyright &copy; 2012, Andy Janata.
<br /> <br />
All rights reserved. All rights reserved.
<br /> <br /> <br /> <br />
@ -44,7 +44,7 @@
POSSIBILITY OF SUCH DAMAGE.</p> POSSIBILITY OF SUCH DAMAGE.</p>
<h1>Card Database</h1> <h1>Card Database</h1>
<p> <p>
This Cards Against Humanity server stores its card data in a PostgreSQL database. The script to This Pretend You're Xyzzy server stores its card data in a PostgreSQL database. The script to
create this database and populate it with the standard Cards Against Humanity cards is licensed create this database and populate it with the standard Cards Against Humanity cards is licensed
under a <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons - under a <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons -
Attribution - Noncommercial - Share Alike license</a>, just like Cards Against Humanity itself. Attribution - Noncommercial - Share Alike license</a>, just like Cards Against Humanity itself.

View File

@ -1,4 +1,4 @@
-- Cards Against Humanity cards by Andy Janata is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. -- Pretend You're Xyzzy cards by Andy Janata is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
-- Based on a work at www.cardsagainsthumanity.com. -- Based on a work at www.cardsagainsthumanity.com.
-- For more information, see http://creativecommons.org/licenses/by-nc-sa/3.0/ -- For more information, see http://creativecommons.org/licenses/by-nc-sa/3.0/