Commit | Line | Data |
---|---|---|
1d184b4c BA |
1 | extends layout |
2 | ||
3 | block css | |
4 | link(rel="stylesheet", href="/stylesheets/index.css") | |
5 | ||
6 | block content | |
7 | .container#indexPage | |
8 | .row | |
9 | .col-sm-12 | |
b019d603 BA |
10 | h1.text-center(style="font-style:italic") Welcome to v[ariant] chess club ! |
11 | h2.text-center | |
12 | span.help(onClick="document.getElementById('modal-help').checked=true") Help ? | |
13 | a(href="/demo.webm") Demo ! | |
14 | input#modal-help.modal(type="checkbox") | |
e7cfa68d | 15 | div(role="dialog") |
38a412be | 16 | #help.card |
b019d603 | 17 | label.modal-close(for="modal-help") |
38a412be | 18 | h3.blue.section Tips |
794b8a98 BA |
19 | p.section |
20 | span.conditional-jump On a variant page, read the rules by clicking on the title "<Variant> rules". | |
21 | span.conditional-jump Try playing against a human: click the leftmost "new game" button :) | |
22 | | ...then, while waiting you can play against a (rather weak) bot or a friend. | |
5febb3f0 | 23 | // TODO? On the index page, try typing the first letters of a variant. |
e7cfa68d BA |
24 | h3.blue.section Comments |
25 | p.section. | |
11c53645 BA |
26 | All games start with a random assymetric position. #[br] |
27 | Games are untimed, and played anonymously. #[br] | |
28 | No chat, to rather focus on the moves :) | |
385166a4 | 29 | h3.red.section Bug report |
11c53645 BA |
30 | p.section. |
31 | If you find a bug in a game, please follow this procedure: #[br] | |
385166a4 | 32 | 1. stop playing: click on the resign button; #[br] |
11c53645 | 33 | 2. click on the PGN to download it; #[br] |
6db7f96d | 34 | 3. send an email to |
385166a4 | 35 | #[a(href="mailto:contact@vchess.club?subject=[vchess.club] bug report") contact@vchess.club] |
98ccb376 | 36 | with relevant comments and the PGN attached. Thank you! |
2c99dab4 BA |
37 | input#modal-b4welcome.modal(type="checkbox") |
38 | div(role="dialog") | |
39 | #b4welcome.card.text-center | |
40 | label.modal-close(for="modal-b4welcome") | |
41 | h3.blue.section First visit? | |
42 | p Please | |
43 | span(style="color:blue;text-decoration:underline;cursor:pointer" @click="showWelcomeMsg") read this | |
44 | span before playing ☺ | |
b019d603 BA |
45 | input#modal-welcome.modal(type="checkbox") |
46 | div(role="dialog") | |
47 | #welcome.card.text-center | |
48 | label.modal-close(for="modal-welcome") | |
49 | h3.blue.section Welcome to vchess.club! | |
50 | .section | |
51 | p A fun place to play chess variants in real time! | |
52 | p But wait... what is a chess variant? | |
53 | img(src="/images/Hexagonal_chess.svg") | |
54 | p. | |
55 | As suggested by the picture, a variant setup generally | |
56 | looks more or less like a chessboard with regular pieces | |
57 | (otherwise it's no longer a variant but a whole new game!). | |
58 | p(style="font-style:italic;color:purple") However... | |
59 | p Each variant has its own new rules, which can involve | |
ea6bb36e BA |
60 | table.list-table |
61 | tbody | |
62 | tr | |
63 | td * different pieces movements | |
64 | tr | |
65 | td * different chessboard(s) | |
66 | tr | |
67 | td * new pieces | |
68 | tr | |
69 | td * moves side effects | |
70 | tr | |
71 | td ...and so on | |
b019d603 BA |
72 | .section |
73 | p. | |
74 | Example: imagine that a capture is an atomic explosion, wiping all adjacent squares | |
75 | – except the pawns, which as cockroaches can resist this kind of event. | |
76 | p Also state a goal: make the opponent's king explode. | |
77 | p → Congrats, you defined Atomic chess! (Playable here) | |
78 | .section | |
79 | p(style="font-style:italic;color:purple") OK, this all sounds interesting, but why would that be fun? | |
80 | p. | |
81 | Because all games here start with a random setup: no more boring | |
82 | openings memorization, you have to rely on your chess skills only :) | |
83 | p Moreover, I claim that the chosen variants here are fun to play :P | |
84 | p. | |
85 | For informations about hundreds (if not thousands!) of variants, you | |
86 | can visit the excellent #[a(href="https://www.chessvariants.com/") chessvariants] website. | |
2c99dab4 | 87 | p(style="cursor:pointer;color:darkred" onClick="setCookie('visited','1');document.getElementById('modal-welcome').checked=false") Click here to not show this message next time |
b019d603 | 88 | p(style="font-size:0.8em") Image credit: #[a(href="https://en.wikipedia.org/wiki/List_of_chess_variants#/media/File:Hexagonal_chess.svg") Wikpedia] |
1d184b4c BA |
89 | .row |
90 | my-variant-summary( | |
91 | v-for="(v,idx) in sortedCounts", | |
92 | v-show="v.name.startsWith(curPrefix)", | |
93 | v-bind:vobj="v", | |
94 | v-bind:key="v.name") | |
95 | ||
96 | block javascripts | |
97 | script. | |
98 | const variantArray = !{JSON.stringify(variantArray)}; | |
99 | //JSON.parse("!{variantArray}".replace(/\"/g,'"')); | |
b019d603 | 100 | script(src="/javascripts/utils/misc.js") |
1d184b4c BA |
101 | script(src="/javascripts/utils/socket_url.js") |
102 | script(src="/javascripts/components/variantSummary.js") | |
103 | script(src="/javascripts/index.js") |