Chicken117 commited on
Commit
2b22d34
·
verified ·
1 Parent(s): cf1139b

Add 2 files

Browse files
Files changed (1) hide show
  1. index.html +6 -6
index.html CHANGED
@@ -86,14 +86,14 @@
86
  </div>
87
 
88
  <!-- Ship Placement Phase -->
89
- <div id="placement-phase" class="hidden bg-black rounded-xl shadow-md p-6 mb-8">
90
  <h2 class="text-xl font-bold text-white-800 mb-4 text-center">Place Your Ships</h2>
91
 
92
  <div class="flex flex-col lg:flex-row gap-8">
93
  <!-- Player Board -->
94
  <div class="lg:w-1/2">
95
  <div class="flex justify-between items-center mb-4">
96
- <h3 class="text-lg font-medium text-blue-700">Your Board</h3>
97
  <button id="rotate-btn" class="rotate-btn px-4 py-2 bg-yellow-500 text-white rounded-lg hover:bg-yellow-600">
98
  <i class="fas fa-sync-alt mr-2"></i>Rotate Ship
99
  </button>
@@ -105,7 +105,7 @@
105
 
106
  <!-- Ships to Place -->
107
  <div class="lg:w-1/2">
108
- <h3 class="text-lg font-medium text-blue-700 mb-4">Ships to Place</h3>
109
  <div id="ships-to-place" class="space-y-4">
110
  <!-- Ships will be generated by JavaScript -->
111
  </div>
@@ -120,7 +120,7 @@
120
  </div>
121
 
122
  <!-- Game Phase -->
123
- <div id="game-phase" class="hidden bg-white rounded-xl shadow-md p-6 mb-8">
124
  <h2 id="game-status" class="text-xl font-bold text-blue-800 mb-4 text-center">Your Turn</h2>
125
 
126
  <div class="flex flex-col lg:flex-row gap-8">
@@ -355,7 +355,7 @@
355
  const cells = getShipCells(row, col, ship.size, gameState.shipOrientation);
356
 
357
  if (!cells) {
358
- showMessage("Ship doesn't fit there!");
359
  return;
360
  }
361
 
@@ -374,7 +374,7 @@
374
  name: ship.name,
375
  size: ship.size,
376
  cells: cells,
377
- hits: 0
378
  });
379
 
380
  // Update UI
 
86
  </div>
87
 
88
  <!-- Ship Placement Phase -->
89
+ <div id="placement-phase" class="hidden bg-white rounded-xl shadow-md p-6 mb-8">
90
  <h2 class="text-xl font-bold text-white-800 mb-4 text-center">Place Your Ships</h2>
91
 
92
  <div class="flex flex-col lg:flex-row gap-8">
93
  <!-- Player Board -->
94
  <div class="lg:w-1/2">
95
  <div class="flex justify-between items-center mb-4">
96
+ <h3 class="text-lg font-medium text-white-700">Your Board</h3>
97
  <button id="rotate-btn" class="rotate-btn px-4 py-2 bg-yellow-500 text-white rounded-lg hover:bg-yellow-600">
98
  <i class="fas fa-sync-alt mr-2"></i>Rotate Ship
99
  </button>
 
105
 
106
  <!-- Ships to Place -->
107
  <div class="lg:w-1/2">
108
+ <h3 class="text-lg font-medium text-white-700 mb-4">Ships to Place</h3>
109
  <div id="ships-to-place" class="space-y-4">
110
  <!-- Ships will be generated by JavaScript -->
111
  </div>
 
120
  </div>
121
 
122
  <!-- Game Phase -->
123
+ <div id="game-phase" class="hidden bg-black rounded-xl shadow-md p-6 mb-8">
124
  <h2 id="game-status" class="text-xl font-bold text-blue-800 mb-4 text-center">Your Turn</h2>
125
 
126
  <div class="flex flex-col lg:flex-row gap-8">
 
355
  const cells = getShipCells(row, col, ship.size, gameState.shipOrientation);
356
 
357
  if (!cells) {
358
+ showMessage("Ship Wont fit"!");
359
  return;
360
  }
361
 
 
374
  name: ship.name,
375
  size: ship.size,
376
  cells: cells,
377
+ hits: 2
378
  });
379
 
380
  // Update UI