<%@include file="../include/imports.jsp" %>
<%
   String sp="launch/launch-rules.jsp";
   LaunchRules main=new LaunchRules(request, response, LaunchRules.Mode.APP);
%>
<html>
<head>
<title>APP Rule Game launch page</title>
</head>
<body>
<h1>APP Rule Game launch page</h1>

<h2>Try out various rule sets!</h2>

<%   if (main.getError()) {   %>  <%@include file="../include/error.jsp" %>
<%   } else if (!main.loggedIn()) { %>

<%@include file="login_form.jsp" %>

<%
} else {
%>

<h2>
Welcome <%= main.getDisplayText() %>
</h2>

<p>The rows of the table below represent various rule sets our researchers have prepared for you to play with.

<!--
none
fix the ones that can't be moved
then add stack memory
then add grid memory.
-->


<p>The columns of the table correspond to different types of "feedback" the player receives, viz.:
<ul>
<li>No feedback (hardest) -- no indication of which pieces are movable, no grid memory or stack memory
<li>Some feedback -- stack memory aids enabled
<li>More feedback -- stack and grid memory aids enabled 
<li>Max feedback --  stack and grid memory aids enabled; non-movable pieces are marked as such (by cross marks)
</ul>



<%= main.tableText%>

<hr>
<h2>Instructions for the experiment manager</h2>

<p>The experiment manager can find the setup instructions for this page <a href="launch-setup.html">here</a>.


<hr>
<a href="../LogoutServlet">Log out</a>

<% 
} %>

<hr>
<p><small>Info Message: <%= main.infomsg%></small>

</body>
</html>
