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.

90 lines
3.9 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. <script src="./JS/gameReset.js"></script>
  22. <title>Vier Gewinnt</title>
  23. </head>
  24. <body>
  25. <h1>Vier Gewinnt</h1>
  26. <button id="regelButton" onclick="regelAnzeige()">Regeln anzeigen</button>
  27. <p id="regeln"></p>
  28. <p>Spieler am Zug: <p id="aktuellerSpieler">1</p></p>
  29. <table>
  30. <tr>
  31. <td id="6/1" onclick="steinSetzen(6,1);"></td>
  32. <td id="6/2" onclick="steinSetzen(6,2);"></td>
  33. <td id="6/3" onclick="steinSetzen(6,3);"></td>
  34. <td id="6/4" onclick="steinSetzen(6,4);"></td>
  35. <td id="6/5" onclick="steinSetzen(6,5);"></td>
  36. <td id="6/6" onclick="steinSetzen(6,6);"></td>
  37. <td id="6/7" onclick="steinSetzen(6,7);"></td>
  38. </tr>
  39. <tr>
  40. <td id="5/1" onclick="steinSetzen(5,1);"></td>
  41. <td id="5/2" onclick="steinSetzen(5,2);"></td>
  42. <td id="5/3" onclick="steinSetzen(5,3);"></td>
  43. <td id="5/4" onclick="steinSetzen(5,4);"></td>
  44. <td id="5/5" onclick="steinSetzen(5,5);"></td>
  45. <td id="5/6" onclick="steinSetzen(5,6);"></td>
  46. <td id="5/7" onclick="steinSetzen(5,7);"></td>
  47. </tr>
  48. <tr>
  49. <td id="4/1" onclick="steinSetzen(4,1);"></td>
  50. <td id="4/2" onclick="steinSetzen(4,2);"></td>
  51. <td id="4/3" onclick="steinSetzen(4,3);"></td>
  52. <td id="4/4" onclick="steinSetzen(4,4);"></td>
  53. <td id="4/5" onclick="steinSetzen(4,5);"></td>
  54. <td id="4/6" onclick="steinSetzen(4,6);"></td>
  55. <td id="4/7" onclick="steinSetzen(4,7);"></td>
  56. </tr>
  57. <tr>
  58. <td id="3/1" onclick="steinSetzen(3,1);"></td>
  59. <td id="3/2" onclick="steinSetzen(3,2);"></td>
  60. <td id="3/3" onclick="steinSetzen(3,3);"></td>
  61. <td id="3/4" onclick="steinSetzen(3,4);"></td>
  62. <td id="3/5" onclick="steinSetzen(3,5);"></td>
  63. <td id="3/6" onclick="steinSetzen(3,6);"></td>
  64. <td id="3/7" onclick="steinSetzen(3,7);"></td>
  65. </tr>
  66. <tr>
  67. <td id="2/1" onclick="steinSetzen(2,1);"></td>
  68. <td id="2/2" onclick="steinSetzen(2,2);"></td>
  69. <td id="2/3" onclick="steinSetzen(2,3);"></td>
  70. <td id="2/4" onclick="steinSetzen(2,4);"></td>
  71. <td id="2/5" onclick="steinSetzen(2,5);"></td>
  72. <td id="2/6" onclick="steinSetzen(2,6);"></td>
  73. <td id="2/7" onclick="steinSetzen(2,7);"></td>
  74. </tr>
  75. <tr>
  76. <td id="1/1" onclick="steinSetzen(1,1);"></td>
  77. <td id="1/2" onclick="steinSetzen(1,2);"></td>
  78. <td id="1/3" onclick="steinSetzen(1,3);"></td>
  79. <td id="1/4" onclick="steinSetzen(1,4);"></td>
  80. <td id="1/5" onclick="steinSetzen(1,5);"></td>
  81. <td id="1/6" onclick="steinSetzen(1,6);"></td>
  82. <td id="1/7" onclick="steinSetzen(1,7);"></td>
  83. </tr>
  84. </table>
  85. <button onClick="window.location.reload();">Spiel neu Starten</button>
  86. </body>
  87. </html>