Compare commits

...

1 commit

Author SHA1 Message Date
66f1de460a
Enable choosing the generation algorithm. 2024-12-14 13:31:51 +01:00
2 changed files with 7 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{ {
"short_name": "React App", "short_name": "A-Maze-R!",
"name": "Create React App Sample", "name": "The A-Maze-ing Maze Generator - A-Maze-R!",
"icons": [ "icons": [
{ {
"src": "favicon.ico", "src": "favicon.ico",

View file

@ -85,6 +85,11 @@ export default function InputForm({state, dispatch}) {
disabled={state.loading} disabled={state.loading}
onChange={setId} onChange={setId}
/><br/> /><br/>
<label for="algorithm">Algorithmus:</label>
<select id={"algorithm"}>
<option>wilson</option>
<option>random</option>
</select><br/>
<button type={"submit"} <button type={"submit"}
disabled={state.loading disabled={state.loading
|| isNaN(width) || isNaN(width)