You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

89 lines
3.8 KiB

  1. <!DOCTYPE html>
  2. <html lang="de">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <link rel="stylesheet" href="./CSS/style.css">
  8. <script src="./JS/steinSetzen.js"></script>
  9. <script src="./JS/spielerWechsel.js"></script>
  10. <script src="./JS/steineInSpalte.js"></script>
  11. <script src="./JS/steineInReihe.js"></script>
  12. <script src="./JS/allSpaltenArrays.js"></script>
  13. <script src="./JS/naechsteFreierPlatz.js"></script>
  14. <script src="./JS/vierInSpalte.js"></script>
  15. <script src="./JS/vierInReihe.js"></script>
  16. <script src="./JS/vierDiagonalRechts.js"></script>
  17. <script src="./JS/vierDiagonalLinks.js"></script>
  18. <script src="./JS/gewinnErmitteln.js"></script>
  19. <script src="./JS/regeln.js"></script>
  20. <script src="./JS/gewinnErmitteln_mock.js"></script>
  21. <title>Vier Gewinnt</title>
  22. </head>
  23. <body>
  24. <h1>Vier Gewinnt</h1>
  25. <button id="regelButton" onclick="regelAnzeige()">Regeln anzeigen</button>
  26. <p id="regeln"></p>
  27. <p>Spieler am Zug: <p id="aktuellerSpieler">1</p></p>
  28. <table>
  29. <tr>
  30. <td id="6/1" onclick="setzeStein(6,1);"></td>
  31. <td id="6/2" onclick="setzeStein(6,2);"></td>
  32. <td id="6/3" onclick="setzeStein(6,3);"></td>
  33. <td id="6/4" onclick="setzeStein(6,4);"></td>
  34. <td id="6/5" onclick="setzeStein(6,5);"></td>
  35. <td id="6/6" onclick="setzeStein(6,6);"></td>
  36. <td id="6/7" onclick="setzeStein(6,7);"></td>
  37. </tr>
  38. <tr>
  39. <td id="5/1" onclick="setzeStein(5,1);"></td>
  40. <td id="5/2" onclick="setzeStein(5,2);"></td>
  41. <td id="5/3" onclick="setzeStein(5,3);"></td>
  42. <td id="5/4" onclick="setzeStein(5,4);"></td>
  43. <td id="5/5" onclick="setzeStein(5,5);"></td>
  44. <td id="5/6" onclick="setzeStein(5,6);"></td>
  45. <td id="5/7" onclick="setzeStein(5,7);"></td>
  46. </tr>
  47. <tr>
  48. <td id="4/1" onclick="setzeStein(4,1);"></td>
  49. <td id="4/2" onclick="setzeStein(4,2);"></td>
  50. <td id="4/3" onclick="setzeStein(4,3);"></td>
  51. <td id="4/4" onclick="setzeStein(4,4);"></td>
  52. <td id="4/5" onclick="setzeStein(4,5);"></td>
  53. <td id="4/6" onclick="setzeStein(4,6);"></td>
  54. <td id="4/7" onclick="setzeStein(4,7);"></td>
  55. </tr>
  56. <tr>
  57. <td id="3/1" onclick="setzeStein(3,1);"></td>
  58. <td id="3/2" onclick="setzeStein(3,2);"></td>
  59. <td id="3/3" onclick="setzeStein(3,3);"></td>
  60. <td id="3/4" onclick="setzeStein(3,4);"></td>
  61. <td id="3/5" onclick="setzeStein(3,5);"></td>
  62. <td id="3/6" onclick="setzeStein(3,6);"></td>
  63. <td id="3/7" onclick="setzeStein(3,7);"></td>
  64. </tr>
  65. <tr>
  66. <td id="2/1" onclick="setzeStein(2,1);"></td>
  67. <td id="2/2" onclick="setzeStein(2,2);"></td>
  68. <td id="2/3" onclick="setzeStein(2,3);"></td>
  69. <td id="2/4" onclick="setzeStein(2,4);"></td>
  70. <td id="2/5" onclick="setzeStein(2,5);"></td>
  71. <td id="2/6" onclick="setzeStein(2,6);"></td>
  72. <td id="2/7" onclick="setzeStein(2,7);"></td>
  73. </tr>
  74. <tr>
  75. <td id="1/1" onclick="setzeStein(1,1);"></td>
  76. <td id="1/2" onclick="setzeStein(1,2);"></td>
  77. <td id="1/3" onclick="setzeStein(1,3);"></td>
  78. <td id="1/4" onclick="setzeStein(1,4);"></td>
  79. <td id="1/5" onclick="setzeStein(1,5);"></td>
  80. <td id="1/6" onclick="setzeStein(1,6);"></td>
  81. <td id="1/7" onclick="setzeStein(1,7);"></td>
  82. </tr>
  83. </table>
  84. <button onClick="window.location.reload();">Spiel neu Starten</button>
  85. </body>
  86. </html>