play.jade 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. extends layout
  2. block content
  3. header.clearfix
  4. a.button(href='/') New game
  5. a.about-in-play(href='/about/') About Reti Chess
  6. script(type='text/javascript')
  7. $token = '#{token}';
  8. script(type='text/javascript', src='/javascripts/play.js')
  9. audio(id='moveSnd', preload='auto')
  10. source(src='/sounds/move.mp3')
  11. source(src='/sounds/move.ogg')
  12. #board_moves_wrapper.clearfix
  13. label(id='sounds_label')
  14. input(type='checkbox', id='sounds')
  15. | Enable sounds
  16. #board_wrapper
  17. table.chess_board.white
  18. tr
  19. td.A8(data-id='A8')
  20. a.black.rook(href='#') ♜
  21. td.B8(data-id='B8')
  22. a.black.knight(href='#') ♞
  23. td.C8(data-id='C8')
  24. a.black.bishop(href='#') ♝
  25. td.D8(data-id='D8')
  26. a.black.king(href='#') ♛
  27. td.E8(data-id='E8')
  28. a.black.queen(href='#') ♚
  29. td.F8(data-id='F8')
  30. a.black.bishop(href='#') ♝
  31. td.G8(data-id='G8')
  32. a.black.knight(href="#") ♞
  33. td.H8(data-id='H8')
  34. a.black.rook(href='#') ♜
  35. tr
  36. td.A7(data-id='A7')
  37. a.black.pawn(href='#') ♟
  38. td.B7(data-id='B7')
  39. a.black.pawn(href='#') ♟
  40. td.C7(data-id='C7')
  41. a.black.pawn(href='#') ♟
  42. td.D7(data-id='D7')
  43. a.black.pawn(href='#') ♟
  44. td.E7(data-id='E7')
  45. a.black.pawn(href='#') ♟
  46. td.F7(data-id='F7')
  47. a.black.pawn(href='#') ♟
  48. td.G7(data-id='G7')
  49. a.black.pawn(href='#') ♟
  50. td.H7(data-id='H7')
  51. a.black.pawn(href='#') ♟
  52. tr
  53. td.A6(data-id='A6')
  54. td.B6(data-id='B6')
  55. td.C6(data-id='C6')
  56. td.D6(data-id='D6')
  57. td.E6(data-id='E6')
  58. td.F6(data-id='F6')
  59. td.G6(data-id='G6')
  60. td.H6(data-id='H6')
  61. tr
  62. td.A5(data-id='A5')
  63. td.B5(data-id='B5')
  64. td.C5(data-id='C5')
  65. td.D5(data-id='D5')
  66. td.E5(data-id='E5')
  67. td.F5(data-id='F5')
  68. td.G5(data-id='G5')
  69. td.H5(data-id='H5')
  70. tr
  71. td.A4(data-id='A4')
  72. td.B4(data-id='B4')
  73. td.C4(data-id='C4')
  74. td.D4(data-id='D4')
  75. td.E4(data-id='E4')
  76. td.F4(data-id='F4')
  77. td.G4(data-id='G4')
  78. td.H4(data-id='H4')
  79. tr
  80. td.A3(data-id='A3')
  81. td.B3(data-id='B3')
  82. td.C3(data-id='C3')
  83. td.D3(data-id='D3')
  84. td.E3(data-id='E3')
  85. td.F3(data-id='F3')
  86. td.G3(data-id='G3')
  87. td.H3(data-id='H3')
  88. tr
  89. td.A2(data-id='A2')
  90. a.white.pawn(href='#') ♙
  91. td.B2(data-id='B2')
  92. a.white.pawn(href='#') ♙
  93. td.C2(data-id='C2')
  94. a.white.pawn(href='#') ♙
  95. td.D2(data-id='D2')
  96. a.white.pawn(href='#') ♙
  97. td.E2(data-id='E2')
  98. a.white.pawn(href='#') ♙
  99. td.F2(data-id='F2')
  100. a.white.pawn(href='#') ♙
  101. td.G2(data-id='G2')
  102. a.white.pawn(href='#') ♙
  103. td.H2(data-id='H2')
  104. a.white.pawn(href='#') ♙
  105. tr
  106. td.A1(data-id='A1')
  107. a.white.rook(href='#') ♖
  108. td.B1(data-id='B1')
  109. a.white.night(href='#') ♘
  110. td.C1(data-id='C1')
  111. a.white.bishop(href='#') ♗
  112. td.D1(data-id='D1')
  113. a.white.king(href='#') ♕
  114. td.E1(data-id='E1')
  115. a.white.wife(href='#') ♔
  116. td.F1(data-id='F1')
  117. a.white.bishop(href='#') ♗
  118. td.G1(data-id='G1')
  119. a.white.night(href='#') ♘
  120. td.H1(data-id='H1')
  121. a.white.rook(href='#') ♖
  122. table.chess_board.black(style='display: none;')
  123. tr
  124. td.H1(data-id='H1')
  125. a.white.rook(href='#') ♖
  126. td.G1(data-id='G1')
  127. a.white.night(href='#') ♘
  128. td.F1(data-id='F1')
  129. a.white.bishop(href='#') ♗
  130. td.E1(data-id='E1')
  131. a.white.king(href='#') ♔
  132. td.D1(data-id='D1')
  133. a.white.queen(href='#') ♕
  134. td.C1(data-id='C1')
  135. a.white.bishop(href='#') ♗
  136. td.B1(data-id='B1')
  137. a.white.knight(href='#') ♘
  138. td.A1(data-id='A1')
  139. a.white.rook(href='#') ♖
  140. tr
  141. td.H2(data-id='H2')
  142. a.white.pawn(href='#') ♙
  143. td.G2(data-id='G2')
  144. a.white.pawn(href='#') ♙
  145. td.F2(data-id='F2')
  146. a.white.pawn(href='#') ♙
  147. td.E2(data-id='E2')
  148. a.white.pawn(href='#') ♙
  149. td.D2(data-id='D2')
  150. a.white.pawn(href='#') ♙
  151. td.C2(data-id='C2')
  152. a.white.pawn(href='#') ♙
  153. td.B2(data-id='B2')
  154. a.white.pawn(href='#') ♙
  155. td.A2(data-id='A2')
  156. a.white.pawn(href='#') ♙
  157. tr
  158. td.H3(data-id='H3')
  159. td.G3(data-id='G3')
  160. td.F3(data-id='F3')
  161. td.E3(data-id='E3')
  162. td.D3(data-id='D3')
  163. td.C3(data-id='C3')
  164. td.B3(data-id='B3')
  165. td.A3(data-id='A3')
  166. tr
  167. td.H4(data-id='H4')
  168. td.G4(data-id='G4')
  169. td.F4(data-id='F4')
  170. td.E4(data-id='E4')
  171. td.D4(data-id='D4')
  172. td.C4(data-id='C4')
  173. td.B4(data-id='B4')
  174. td.A4(data-id='A4')
  175. tr
  176. td.H5(data-id='H5')
  177. td.G5(data-id='G5')
  178. td.F5(data-id='F5')
  179. td.E5(data-id='E5')
  180. td.D5(data-id='D5')
  181. td.C5(data-id='C5')
  182. td.B5(data-id='B5')
  183. td.A5(data-id='A5')
  184. tr
  185. td.H6(data-id='H6')
  186. td.G6(data-id='G6')
  187. td.F6(data-id='F6')
  188. td.E6(data-id='E6')
  189. td.D6(data-id='D6')
  190. td.C6(data-id='C6')
  191. td.B6(data-id='B6')
  192. td.A6(data-id='A6')
  193. tr
  194. td.H7(data-id='H7')
  195. a.black.pawn(href='#') ♟
  196. td.G7(data-id='G7')
  197. a.black.pawn(href='#') ♟
  198. td.F7(data-id='F7')
  199. a.black.pawn(href='#') ♟
  200. td.E7(data-id='E7')
  201. a.black.pawn(href='#') ♟
  202. td.D7(data-id='D7')
  203. a.black.pawn(href='#') ♟
  204. td.C7(data-id='C7')
  205. a.black.pawn(href='#') ♟
  206. td.B7(data-id='B7')
  207. a.black.pawn(href='#') ♟
  208. td.A7(data-id='A7')
  209. a.black.pawn(href='#') ♟
  210. tr
  211. td.H8(data-id='H8')
  212. a.black.rook(href='#') ♜
  213. td.G8(data-id='G8')
  214. a.black.knight(href="#") ♞
  215. td.F8(data-id='F8')
  216. a.black.bishop(href='#') ♝
  217. td.E8(data-id='E8')
  218. a.black.king(href='#') ♚
  219. td.D8(data-id='D8')
  220. a.black.queen(href='#') ♛
  221. td.C8(data-id='C8')
  222. a.black.bishop(href='#') ♝
  223. td.B8(data-id='B8')
  224. a.black.knight(href='#') ♞
  225. td.A8(data-id='A8')
  226. a.black.rook(href='#') ♜
  227. table#moves.clearfix
  228. thead
  229. tr
  230. th Table of moves
  231. tbody
  232. tr
  233. span.promotion
  234. label(id='for_promotion') Promotion:
  235. select(id='promotion')
  236. option(value='q', selected) Queen
  237. option(value='r') Rook
  238. option(value='n') Knight
  239. option(value='b') Bishop
  240. span.feedback.whitefeedback
  241. span.feedback-move White to move.
  242. span.feedback-status