d131324eaa
Better styling for check indication
2018-04-13 10:56:15 -04:00
eeb5668e26
Make game state indicator slightly transparent
2018-04-13 10:56:15 -04:00
e63b7b9069
Add won/lost to the games list
2018-04-13 10:56:15 -04:00
5bc43465ff
Style game state indicator
2018-04-13 10:52:49 -04:00
d86d94dc70
Separate out game state into its own component
2018-04-13 10:52:48 -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
dependabot[bot]
daa93e9d7f
Bump wallaby from 0.19.2 to 0.20.0
...
Bumps [wallaby](https://github.com/keathley/wallaby ) from 0.19.2 to 0.20.0.
- [Release notes](https://github.com/keathley/wallaby/releases )
- [Changelog](https://github.com/keathley/wallaby/blob/master/CHANGELOG.md )
- [Commits](https://github.com/keathley/wallaby/compare/v0.19.2...v0.20.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-04-12 05:25:24 +00: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
6a72e5f404
Remove unneeded include
2018-04-08 21:38:51 -04:00
4d7b3e158f
Fix selected/available borders
2018-04-06 16:35:24 -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
35d1f33f76
Use CSS vars and media queries to resize board
...
This should mostly keep the board entirely within the viewport.
2018-04-06 13:27:22 -04:00
2e319f762a
Add board labels
2018-04-06 11:35:31 -04:00
c65c488bd4
Tweak board styling and remove unneeded styles
2018-04-06 11:35:31 -04:00
0b5e26e5c9
Use CSS grid to layout the board
2018-04-06 11:35:31 -04:00
eb72a4cde6
I'm ok with using @extend
2018-04-06 11:35:31 -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
fd3fad05d1
Add board tests
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
474860a004
Merge pull request #40 from danbee/dependabot/hex/credo-0.9.0
...
Bump credo from 0.8.10 to 0.9.0
2018-03-31 15:14:16 -04:00
7be72afb52
Merge pull request #38 from danbee/dependabot/hex/phoenix_html-2.11.1
...
Bump phoenix_html from 2.11.0 to 2.11.1
2018-03-31 15:13:59 -04:00
dependabot[bot]
af5c2c612b
Bump credo from 0.8.10 to 0.9.0
...
Bumps [credo](https://github.com/rrrene/credo ) from 0.8.10 to 0.9.0.
- [Release notes](https://github.com/rrrene/credo/releases )
- [Changelog](https://github.com/rrrene/credo/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rrrene/credo/compare/v0.8.10...v0.9.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-03-26 05:33:55 +00:00
dependabot[bot]
cc5e2f4e88
Bump phoenix_html from 2.11.0 to 2.11.1
...
Bumps [phoenix_html](https://github.com/phoenixframework/phoenix_html ) from 2.11.0 to 2.11.1.
- [Release notes](https://github.com/phoenixframework/phoenix_html/releases )
- [Changelog](https://github.com/phoenixframework/phoenix_html/blob/master/CHANGELOG.md )
- [Commits](https://github.com/phoenixframework/phoenix_html/compare/v2.11.0...v2.11.1 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-03-21 05:31:38 +00: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
5745b916c4
Better language
2018-03-14 20:35:28 -04:00
415ad8e8ee
Queens are obstructed
...
We got this for free because the queens moves combine both the rook and
bishop.
2018-03-14 18:24:16 -04:00
8a5adc44f5
Bishops can be obstructed
2018-03-14 18:24:04 -04:00
edda70b4f2
Consistent language
2018-03-14 18:23:48 -04:00
ab9900d1e3
Make a move generator file
2018-03-14 18:10:22 -04:00
0062af2736
Rooks can be obstructed
2018-03-14 09:40:57 -04:00
bfa49b48b6
Make code clearer
2018-03-13 22:45:13 -04:00
682ce67652
These should be function calls
2018-03-13 22:30:39 -04:00
2c8f2c7bcd
Pawn can be blocked
2018-03-13 22:20:48 -04:00