qwen3-235b-a22b-no-thinking· Alibaba (Qwen) LMArena Human Preference 140K
potrzebuje kodu svg do planszy do sudoku 6 i 9 zama tabela
- User
potrzebuje kodu svg do planszy do sudoku 6 i 9 zama tabela
- Assistant
Oczywiście! Poniżej znajdziesz przykładowe kody SVG do stworzenia planszy Sudoku – jedna dla Sudoku 6x6, a druga dla klasycznego Sudoku 9x9. W obu przypadkach używam prostych linii i tabeli, aby stworzyć siatkę.
✅ Sudoku 6x6 (SVG)
Plansza 6×6 składa się z 6 rzędów i 6 kolumn oraz 6 bloków 2×3.
<svg width="300" height="300" xmlns="http://www.w3.org/2000/svg"> <!-- Komórki --> <rect x="0" y="0" width="300" height="300" fill="white" stroke="black" stroke-width="2"/> <!-- Linie pionowe --> <g stroke="black" stroke-width="1"> <line x1="50" y1="0" x2="50" y2="300"/> <line x1="100" y1="0" x2="100" y2="300"/> <line x1="150" y1="0" x2="150" y2="300"/> <line x1="200" y1="0" x2="200" y2="300"/> <line x1="250" y1="0" x2="250" y2="300"/> </g> <!-- Linie poziome --> <g stroke="black" stroke-width="1"> <line x1="0" y1="50" x2="300" y2="50"/> <line x1="0" y1="100" x2="300" y2="100"/> <line x1="0" y1="150" x2="300" y2="150"/> <line x1="0" y1="200" x2="300" y2="200"/> <line x1="0" y1="250" x2="300" y2="250"/> </g> <!-- Grube linie oddzielające bloki 2x3 --> <g stroke="black" stroke-width="3"> <!-- Pionowe granice bloków --> <line x1="150" y1="0" x2="150" y2="300"/> <!-- Poziome granice bloków --> <line x1="0" y1="150" x2="300" y2="150"/> </g> </svg>
✅ Sudoku 9x9 (SVG)
Plansza 9×9 składa się z 9 rzędów, 9 kolumn oraz 9 bloków 3×3.
<svg width="450" height="450" xmlns="http://www.w3.org/2000/svg"> <!-- Tło --> <rect x="0" y="0" width="450" height="450" fill="white" stroke="black" stroke-width="2"/> <!-- Linie pionowe --> <g stroke="black" stroke-width="1"> <!-- cienkie linie między komórkami --> <line x1="50" y1="0" x2="50" y2="450"/> <line x1="100" y1="0" x2="100" y2="450"/> <line x1="150" y1="0" x2="150" y2="450"/> <line x1="200" y1="0" x2="200" y2="450"/> <line x1="250" y1="0" x2="250" y2="450"/> <line x1="300" y1="0" x2="300" y2="450"/> <line x1="350" y1="0" x2="350" y2="450"/> <line x1="400" y1="0" x2="400" y2="450"/> </g> <!-- Linie poziome --> <g stroke="black" stroke-width="1"> <line x1="0" y1="50" x2="450" y2="50"/> <line x1="0" y1="100" x2="450" y2="100"/> <line x1="0" y1="150" x2="450" y2="150"/> <line x1="0" y1="200" x2="450" y2="200"/> <line x1="0" y1="250" x2="450" y2="250"/> <line x1="0" y1="300" x2="450" y2="300"/> <line x1="0" y1="350" x2="450" y2="350"/> <line x1="0" y1="400" x2="450" y2="400"/> </g> <!-- Grube linie oddzielające bloki 3x3 --> <g stroke="black" stroke-width="3"> <!-- Pionowe granice bloków --> <line x1="150" y1="0" x2="150" y2="450"/> <line x1="300" y1="0" x2="300" y2="450"/> <!-- Poziome granice bloków --> <line x1="0" y1="150" x2="450" y2="150"/> <line x1="0" y1="300" x2="450" y2="300"/> </g> </svg>
📌 Jak używać?
- Skopiuj kod do pliku
.htmli otwórz go w przeglądarce. - Możesz też osadzić SVG bezpośrednio na stronie internetowej.
- Jeśli chcesz dodawać cyfry – możesz dodać tagi
<text>do każdej komórki.
Chcesz także wersję z możliwościami wpisywania liczb lub klikania? Daj znać — mogę pomóc rozszerzyć o JS/CSS.
- Skopiuj kod do pliku
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.