1
0
mirror of https://github.com/danbee/chess synced 2025-03-04 08:39:06 +00:00
Commit Graph

126 Commits

Author SHA1 Message Date
9e36945f8d
Castling moves! ♔→←♖ 2018-06-08 10:57:31 -04:00
e700efc288
Consolidate opponent and player functions 2018-05-25 15:49:53 -04:00
430a34e906
💄 2018-05-25 15:49:28 -04:00
a66bc2655b
Abstract out channel queries 2018-05-25 15:17:26 -04:00
dddebf06ad
Some refactoring 2018-05-13 19:32:05 -04:00
fff2c342ff
Boards need a king on both sides 2018-05-12 13:20:47 -04:00
659f748ada
Use grids for the game layout 2018-05-12 11:41:01 -04:00
6243259d27
Clean up moves display 2018-05-12 11:41:01 -04:00
950e7a86f1
Indicate captures 2018-05-12 11:41:00 -04:00
151a993b53
Display moves in standard chess notation 2018-05-12 11:41:00 -04:00
32536118c4
Send moves list back to client 2018-05-12 11:40:59 -04:00
87c453c564
Translate moves into display format 2018-05-12 11:40:59 -04:00
49bba88f07
Consistency 2018-05-12 11:40:59 -04:00
743f6d3095
Store move when it's made 2018-05-12 11:40:59 -04:00
caa68d41f8
Make changeset function responsible for the move 2018-05-12 11:40:58 -04:00
dcdd17539b
Game has many moves 2018-05-12 11:40:58 -04:00
5dff6a4156
Tiny refactor 2018-05-12 11:40:58 -04:00
3c4d5867a3
Add move and move test 2018-05-12 11:40:57 -04:00
6513cdbee0
Fix bug with state check 2018-05-12 11:39:55 -04:00
812607ae36
Avoid a warning 2018-05-04 17:53:20 +02:00
55fa8a0701
Tiny transform refactor 2018-05-04 17:53:20 +02:00
69a9206046
Fix turn based problem 2018-04-27 18:29:48 +01:00
30d0750ffc
Make Chess a link 2018-04-13 16:50:37 -04:00
f19b30dfaf
Gettextify! 2018-04-13 11:25:28 -04:00
f03692c9b9
These should be using GameState 2018-04-13 10:56:15 -04:00
80d8c26552
Move game_over? to GameState 2018-04-13 10:56:15 -04:00
e63b7b9069
Add won/lost to the games list 2018-04-13 10:56:15 -04:00
5556de00b0
Show game state on the board 2018-04-13 10:52:48 -04:00
6b31491ad4
Checks whether a player is checkmated 2018-04-13 10:52:48 -04:00
e2826fdbce
Split out game status checks and add piece colour search 2018-04-13 10:52:48 -04:00
d6c0ec5f13
Welcome page i18n 2018-04-08 23:03:35 -04:00
1f9b9e02e2
Add gettext calls for i18n 2018-04-08 22:28:21 -04:00
97a23ff9e7
Extract turn_class function 2018-04-06 16:31:07 -04:00
693263fb6d
Nice one liner 2018-04-06 15:49:40 -04:00
ba70cb5f30
Show colour and whether it's your turn 2018-04-06 14:21:20 -04:00
188bb1830b
Make email fields emails 2018-04-06 11:34:58 -04:00
a8c412b207
Tweak check validation message 2018-03-31 15:32:26 -04:00
9c0629f9a7
Use if rather than cond 2018-03-31 15:21:48 -04:00
8bb9bb2ae5
These functions should be private 2018-03-31 15:21:48 -04:00
49540d72bd
Notification if move would result in check 2018-03-31 15:21:48 -04:00
048db4c71c
Rename function 2018-03-31 15:21:48 -04:00
320cb03b1f
Add tests for king in check 2018-03-31 15:21:47 -04:00
aa7f685521
Check for attacks from pawns 2018-03-31 15:21:47 -04:00
92b0b08298
Move piece getter to board module 2018-03-31 15:21:47 -04:00
6c944243fb
Re-organise pieces 2018-03-31 15:21:47 -04:00
18aa9faab4
Determine whether a piece is being attacked
This also refactors a bunch of the movement generation code to simplify
things and make it more flexible. This allows us to use the same code to
check pieces under attack.

* Still need to add pawns
2018-03-31 15:21:47 -04:00
7cbc4f3acd
More idiomatic language 2018-03-15 08:45:46 -04:00
ea635086a0
Add pawn taking moves 2018-03-14 21:47:00 -04:00
17b9108173
Kings are obstructed 2018-03-14 20:36:29 -04:00
7e1665781a
Knights are obstructed 2018-03-14 20:36:20 -04:00