CVS: Tapestry/examples/Tutorial/context/hangman Success.html,NONE,1.1.2.1 Failed.html,NONE,1.1.2.1 Home.html,NONE,1.1.2.1 Guess.html,NONE,1.1.2.1

Howard Lewis Ship <[email protected]>
Newsgroups gmane.comp.java.tapestry.cvs
Message-ID <[email protected]>
Update of /cvsroot/tapestry/Tapestry/examples/Tutorial/context/hangman
In directory sc8-pr-cvs1:/tmp/cvs-serv10583/examples/Tutorial/context/hangman

Added Files:
      Tag: hship-2-3
	Success.html Failed.html Home.html Guess.html 
Log Message:
Reorganize the tutorials to use new 2.4 features.

--- NEW FILE: Success.html ---
<html>
<head>
<title>Tapestry Hangman</title>
</head>
<body>

<h1>You Win!</h1>

The word was:

<font size=large>
<span jwcid="@Insert" value="[[ visit.game.word ]]">Zebra</span>
</font>.

<p>
<a href="#" jwcid="@PageLink" page="Home">Start again</a>

</body>
</html>

--- NEW FILE: Failed.html ---
<html>
<head>
<title>Tapestry Hangman</title>
</head>
<body>

<h1>You Lose!</h1>

The word was:

<font size=large>
<span jwcid="@Insert" value="[[ visit.game.word ]]">Zebra</span>
</font>.

<p>
<a href="#" jwcid="@PageLink" page="Home">Start again</a>

</body>
</html>

--- NEW FILE: Home.html ---
<html>
<head>
<title>Tapestry Hangman</title>
</head>
<body>

<h1>Tapestry Hangman</h1>

This is the standard game of Hangman.  You must guess a word, a letter at a time.  If you make
too many mistakes, you lose!

<p>

<form jwcid="@Form" listener="[[ listeners.formSubmit ]]">

<span jwcid="@RadioGroup" selected="[[ misses ]]">

<span jwcid="@Conditional" condition="[[ error ]]">
<font size=+2 color=red><span jwcid="@Insert" value="[[ error ]]">Error Message</span></font>
</span>

<table>
	<tr>
		<td><input type="radio" jwcid="@Radio" value="[[ @tutorial.hangman.Home@EASY ]]"/></td>
		<td>Easy game; you are allowed ten misses.</td>
	</tr>

	<tr>
		<td><input type="radio" jwcid="@Radio" value="[[ @tutorial.hangman.Home@MEDIUM ]]"/></td>
		<td>Medium game; you are allowed five misses.</td>
	</tr>

	<tr>
		<td><input type="radio" jwcid="@Radio" value="[[ @tutorial.hangman.Home@HARD ]]"/></td>
		<td>Hard game; you are only allowed three misses.</td>
	</tr>

	<tr>
		<td></td>
		<td><input type="submit" value="Play!"/></td>
	</tr>

</table>

</span>
</form>

</body>
</html>

--- NEW FILE: Guess.html ---
<html>
<head>
<title>Tapestry Hangman</title>
</head>
<body>

<h1>Make a Guess</h1>

<font size=+3>
	<span jwcid="@Insert" value="[[ guessed ]]"/>
</font>

<p>

You have made <span jwcid="@Insert" value="[[ visit.game.missed ]]">10</span> bad guesses,
out of a maximum of <span jwcid="@Insert" value="[[ visit.game.maxMisses ]]">10</span>.

<span jwcid="@Conditional" condition="[[ error ]]">
<p>
<font size=+3 color=red><span jwcid="@Insert" value="[[ error ]]">Error Message</span></font>
</span>

<p>Guess:
<font size=+1>
<span jwcid="e">
<a jwcid="guess"><span jwcid="@Insert" value="[[ components.e.value ]]">X</span></a>
</span>
</font>

<p><a jwcid="@PageLink" page="Failed">Give up?</a>

</body>
</html>



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.