From 622a7e409471a3431a38084822793b8e32bc61be Mon Sep 17 00:00:00 2001 From: DeNNiiInc Date: Mon, 22 Dec 2025 17:39:43 +1100 Subject: [PATCH] Add surrender and rematch UI - Part 1 - Add surrender button to game controls - Add game-over modal with stats and rematch option - Add surrender confirmation modal - Add all CSS styling for new modals and buttons - Add surrender-rematch.js with global helper functions - Update multiplayer.js constructor to track opponent for rematch --- index.html | 285 ++++++++++++++++++++++++++--------- multiplayer-styles.css | 197 ++++++++++++++++++++++++ multiplayer.js | 3 + surrender-rematch.js | 68 +++++++++ temp-multiplayer-methods.txt | 71 +++++++++ 5 files changed, 554 insertions(+), 70 deletions(-) create mode 100644 surrender-rematch.js create mode 100644 temp-multiplayer-methods.txt diff --git a/index.html b/index.html index caec664..fa49567 100644 --- a/index.html +++ b/index.html @@ -45,10 +45,19 @@
- -
@@ -74,11 +83,17 @@ X - Player X starts + Player X starts -