Draft plan for easy Alice chess implementation
[vchess.git] / views / index.pug
CommitLineData
1d184b4c
BA
1extends layout
2
3block css
4 link(rel="stylesheet", href="/stylesheets/index.css")
5
6block content
7 .container#indexPage
8 .row
9 .col-sm-12
10 h1.text-center Welcome to v[ariant] chess club !
e7cfa68d
BA
11 h2.help.text-center(onClick="document.getElementById('modal-control').checked=true") Help ?
12 input#modal-control.modal(type="checkbox")
13 div(role="dialog")
14 .card
15 label.modal-close(for="modal-control")
16 h3.blue.section Modes
17 p.section.
18 Each variant page offers two modes: against a human or computer opponent.
19 The latter is not designed to play well: it is here to help learning the rules.
20 When you beat the bot easily consider playing human opponents!
21 h3.blue.section Initial position
22 p.section.
a3eb4cc5 23 All games start with a random assymetric position.
e7cfa68d
BA
24 h3.blue.section Comments
25 p.section.
26 Games are untimed, and played anonymously. This website lacks a user/challenge/chat/... system,
27 both for technical reasons (difficult to maintain all that alone) and also a bit for
28 focusing on the essential: the moves! :)
1d184b4c
BA
29 .row
30 my-variant-summary(
31 v-for="(v,idx) in sortedCounts",
32 v-show="v.name.startsWith(curPrefix)",
33 v-bind:vobj="v",
34 v-bind:key="v.name")
35
36block javascripts
37 script.
38 const variantArray = !{JSON.stringify(variantArray)};
39 //JSON.parse("!{variantArray}".replace(/\"/g,'"'));
40 script(src="/javascripts/utils/socket_url.js")
41 script(src="/javascripts/components/variantSummary.js")
42 script(src="/javascripts/index.js")