mirror of
https://github.com/kmitresse/Cards-Rush.git
synced 2026-05-13 17:11:49 +00:00
feat: dev-web - use constants
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
<%@ page import="uppa.project.pojo.User" %>
|
||||
<%@ page import="java.util.List" %><%--
|
||||
<%@ page import="java.util.List" %>
|
||||
<%@ page import="uppa.project.pojo.Game" %>
|
||||
<%@ page import="uppa.project.pojo.Deck" %><%--
|
||||
Created by IntelliJ IDEA.
|
||||
User: kmitr
|
||||
Date: 19/03/2024
|
||||
@@ -12,14 +14,14 @@
|
||||
<h1> New Game</h1>
|
||||
<div id="settings">
|
||||
<form>
|
||||
<label for="nbRounds">Nombre de tours</label>
|
||||
<input type="number" id="nbRounds" name="nbRounds" min="1" max="50" value="10">
|
||||
<label for="timer">Timer</label>
|
||||
<input type="number" id="timer" name="timer" min="1" max="10" value="5">
|
||||
<input type="number" id="timer" name="timer" min="<%= Game.TIMER_MIN %>" max="<%= Game.TIMER_MAX %>" value="<%= Game.TIMER_MIN %>">
|
||||
<label for="nbColors">Nb couleurs</label>
|
||||
<input type="range" id="nbColors" name="nbColors" min="1" max="4" value="4">
|
||||
<label for="nbValues">Nb valeurs par coleurs</label>
|
||||
<input type="range" id="nbValues" name="nbValues" min="5" max="13" value="13">
|
||||
<input type="range" id="nbColors" name="nbColors" min="<%= Deck.NB_COLORS_MIN %>" max="<%= Deck.NB_COLORS_MAX %>" value="<%= Deck.NB_COLORS_MAX %>">
|
||||
<label for="nbValues">Nb valeurs par couleurs</label>
|
||||
<input type="range" id="nbValues" name="nbValues" min="<%= Deck.NB_VALUES_PER_COLOR_MIN %>" max="<%= Deck.NB_VALUES_PER_COLOR_MAX %>" value="<%= Deck.NB_VALUES_PER_COLOR_MAX %>">
|
||||
<label for="nbRounds">Nombre de tours</label>
|
||||
<input type="number" id="nbRounds" name="nbRounds" min="<%= Game.NB_ROUNDS_MIN %>" max="<%= Deck.NB_COLORS_MAX * Deck.NB_VALUES_PER_COLOR_MAX %>" value="Deck.NB_COLORS_MAX * Deck.NB_VALUES_PER_COLOR_MAX">
|
||||
</form>
|
||||
</div>
|
||||
<div id="players-selection">
|
||||
|
||||
Reference in New Issue
Block a user