Changes to candymatch.scroll.pub

root
root
24 days ago
Initial commit
body.html
Changed around line 1
+
+

CandyMatch

+

Match candies and compete with friends in real-time!

+
+
+
+
+
+
+

Players

+
    +
    +
    +
    +
    +
    +

    Play with friends and enjoy the sweetest match-three game online!

    +
    index.scroll
    Changed around line 1
    + buildHtml
    + baseUrl https://candymatch.scroll.pub
    + metaTags
    + editButton /edit.html
    + title CandyMatch - Multiplayer Candy Crush Clone
    + style.css
    + body.html
    + script.js
    prompt.json
    Changed around line 1
    + {
    + "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
    \n

    CandyMatch

    \n

    Match candies and compete with friends in real-time!

    \n
    \n
    \n
    \n \n
    \n
    \n

    Players

    \n
      \n \n
    \n
    \n
    \n
    \n

    Play with friends and enjoy the sweetest match-three game online!

    \n
    \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"
    + }
    readme.scroll
    Changed around line 1
    + # candymatch.scroll.pub
    + Website generated by DeepSeek from prompt: I want a website that is a multiplayer candy crush clone
    script.js
    Changed around line 1
    + 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);
    + });
    style.css
    Changed around line 1
    + :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;
    + }
    + }