commit 3b38198954b327c58b1496af52ef94f17e1f64be
Author: root <root@hub.scroll.pub>
Date: 2024-12-29 01:25:38 +0000
Subject: Initial commit
diff --git a/body.html b/body.html
new file mode 100644
index 0000000..edc7e05
--- /dev/null
+++ b/body.html
@@ -0,0 +1,18 @@
+<header>
+ <h1>CandyMatch</h1>
+ <p>Match candies and compete with friends in real-time!</p>
+</header>
+<main>
+ <div id="game-board">
+ <!-- Game board will be dynamically generated here -->
+ </div>
+ <div id="scoreboard">
+ <h2>Players</h2>
+ <ul id="players-list">
+ <!-- Player scores will be dynamically added here -->
+ </ul>
+ </div>
+</main>
+<footer>
+ <p>Play with friends and enjoy the sweetest match-three game online!</p>
+</footer>
\ No newline at end of file
diff --git a/index.scroll b/index.scroll
new file mode 100644
index 0000000..13b5d7b
--- /dev/null
+++ b/index.scroll
@@ -0,0 +1,8 @@
+buildHtml
+baseUrl https://candymatch.scroll.pub
+metaTags
+editButton /edit.html
+title CandyMatch - Multiplayer Candy Crush Clone
+style.css
+body.html
+script.js
\ No newline at end of file
diff --git a/prompt.json b/prompt.json
new file mode 100644
index 0000000..3018f00
--- /dev/null
+++ b/prompt.json
@@ -0,0 +1,25 @@
+{
+ "id": "afd06a9c-a6d0-4d5c-b267-ae214904e763",
+ "object": "chat.completion",
+ "created": 1735435524,
+ "model": "deepseek-chat",
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "role": "assistant",
+ "content": "---domain---\ncandymatch.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://candymatch.scroll.pub\nmetaTags\neditButton /edit.html\ntitle CandyMatch - Multiplayer Candy Crush Clone\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>CandyMatch</h1>\n <p>Match candies and compete with friends in real-time!</p>\n</header>\n<main>\n <div id=\"game-board\">\n <!-- Game board will be dynamically generated here -->\n </div>\n <div id=\"scoreboard\">\n <h2>Players</h2>\n <ul id=\"players-list\">\n <!-- Player scores will be dynamically added here -->\n </ul>\n </div>\n</main>\n<footer>\n <p>Play with friends and enjoy the sweetest match-three game online!</p>\n</footer>\n---style.css---\n:root {\n --primary-color: #ff6f61;\n --secondary-color: #ffcc5c;\n --background-color: #f8f8f8;\n --text-color: #333;\n --font-family: 'Arial', sans-serif;\n}\n\nbody {\n font-family: var(--font-family);\n color: var(--text-color);\n background-color: var(--background-color);\n margin: 0;\n padding: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n min-height: 100vh;\n}\n\nheader {\n text-align: center;\n padding: 20px;\n background-color: var(--primary-color);\n color: white;\n width: 100%;\n}\n\nh1 {\n font-size: 2.5rem;\n margin: 0;\n}\n\np {\n font-size: 1.2rem;\n}\n\nmain {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n gap: 20px;\n padding: 20px;\n}\n\n#game-board {\n display: grid;\n grid-template-columns: repeat(8, 50px);\n grid-template-rows: repeat(8, 50px);\n gap: 5px;\n background-color: white;\n padding: 10px;\n border-radius: 10px;\n box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);\n}\n\n.candy {\n width: 50px;\n height: 50px;\n border-radius: 10px;\n cursor: pointer;\n transition: transform 0.2s;\n}\n\n.candy:hover {\n transform: scale(1.1);\n}\n\n#scoreboard {\n background-color: white;\n padding: 20px;\n border-radius: 10px;\n box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);\n}\n\n#players-list {\n list-style: none;\n padding: 0;\n}\n\n#players-list li {\n display: flex;\n justify-content: space-between;\n padding: 10px;\n border-bottom: 1px solid #eee;\n}\n\nfooter {\n text-align: center;\n padding: 20px;\n background-color: var(--primary-color);\n color: white;\n width: 100%;\n}\n\n@media (max-width: 768px) {\n #game-board {\n grid-template-columns: repeat(6, 40px);\n grid-template-rows: repeat(6, 40px);\n }\n\n .candy {\n width: 40px;\n height: 40px;\n }\n}\n---script.js---\ndocument.addEventListener('DOMContentLoaded', () => {\n const gameBoard = document.getElementById('game-board');\n const playersList = document.getElementById('players-list');\n\n const candyTypes = ['red', 'yellow', 'green', 'blue', 'purple'];\n const boardSize = 8;\n\n function createBoard() {\n for (let i = 0; i < boardSize * boardSize; i++) {\n const candy = document.createElement('div');\n candy.classList.add('candy');\n const randomType = candyTypes[Math.floor(Math.random() * candyTypes.length)];\n candy.classList.add(randomType);\n gameBoard.appendChild(candy);\n }\n }\n\n function updateScoreboard(players) {\n playersList.innerHTML = '';\n players.forEach(player => {\n const li = document.createElement('li');\n li.textContent = `${player.name}: ${player.score}`;\n playersList.appendChild(li);\n });\n }\n\n // Example players data\n const players = [\n { name: 'Player 1', score: 0 },\n { name: 'Player 2', score: 0 }\n ];\n\n createBoard();\n updateScoreboard(players);\n});\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 245,
+ "completion_tokens": 1047,
+ "total_tokens": 1292,
+ "prompt_cache_hit_tokens": 0,
+ "prompt_cache_miss_tokens": 245
+ },
+ "system_fingerprint": "fp_f1afce2943"
+}
\ No newline at end of file
diff --git a/readme.scroll b/readme.scroll
new file mode 100644
index 0000000..8fec49d
--- /dev/null
+++ b/readme.scroll
@@ -0,0 +1,2 @@
+# candymatch.scroll.pub
+Website generated by DeepSeek from prompt: I want a website that is a multiplayer candy crush clone
\ No newline at end of file
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..9645153
--- /dev/null
+++ b/script.js
@@ -0,0 +1,35 @@
+document.addEventListener('DOMContentLoaded', () => {
+ const gameBoard = document.getElementById('game-board');
+ const playersList = document.getElementById('players-list');
+
+ const candyTypes = ['red', 'yellow', 'green', 'blue', 'purple'];
+ const boardSize = 8;
+
+ function createBoard() {
+ for (let i = 0; i < boardSize * boardSize; i++) {
+ const candy = document.createElement('div');
+ candy.classList.add('candy');
+ const randomType = candyTypes[Math.floor(Math.random() * candyTypes.length)];
+ candy.classList.add(randomType);
+ gameBoard.appendChild(candy);
+ }
+ }
+
+ function updateScoreboard(players) {
+ playersList.innerHTML = '';
+ players.forEach(player => {
+ const li = document.createElement('li');
+ li.textContent = `${player.name}: ${player.score}`;
+ playersList.appendChild(li);
+ });
+ }
+
+ // Example players data
+ const players = [
+ { name: 'Player 1', score: 0 },
+ { name: 'Player 2', score: 0 }
+ ];
+
+ createBoard();
+ updateScoreboard(players);
+});
\ No newline at end of file
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..0844344
--- /dev/null
+++ b/style.css
@@ -0,0 +1,107 @@
+:root {
+ --primary-color: #ff6f61;
+ --secondary-color: #ffcc5c;
+ --background-color: #f8f8f8;
+ --text-color: #333;
+ --font-family: 'Arial', sans-serif;
+}
+
+body {
+ font-family: var(--font-family);
+ color: var(--text-color);
+ background-color: var(--background-color);
+ margin: 0;
+ padding: 0;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ min-height: 100vh;
+}
+
+header {
+ text-align: center;
+ padding: 20px;
+ background-color: var(--primary-color);
+ color: white;
+ width: 100%;
+}
+
+h1 {
+ font-size: 2.5rem;
+ margin: 0;
+}
+
+p {
+ font-size: 1.2rem;
+}
+
+main {
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: center;
+ gap: 20px;
+ padding: 20px;
+}
+
+#game-board {
+ display: grid;
+ grid-template-columns: repeat(8, 50px);
+ grid-template-rows: repeat(8, 50px);
+ gap: 5px;
+ background-color: white;
+ padding: 10px;
+ border-radius: 10px;
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
+}
+
+.candy {
+ width: 50px;
+ height: 50px;
+ border-radius: 10px;
+ cursor: pointer;
+ transition: transform 0.2s;
+}
+
+.candy:hover {
+ transform: scale(1.1);
+}
+
+#scoreboard {
+ background-color: white;
+ padding: 20px;
+ border-radius: 10px;
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
+}
+
+#players-list {
+ list-style: none;
+ padding: 0;
+}
+
+#players-list li {
+ display: flex;
+ justify-content: space-between;
+ padding: 10px;
+ border-bottom: 1px solid #eee;
+}
+
+footer {
+ text-align: center;
+ padding: 20px;
+ background-color: var(--primary-color);
+ color: white;
+ width: 100%;
+}
+
+@media (max-width: 768px) {
+ #game-board {
+ grid-template-columns: repeat(6, 40px);
+ grid-template-rows: repeat(6, 40px);
+ }
+
+ .candy {
+ width: 40px;
+ height: 40px;
+ }
+}
\ No newline at end of file