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
4513bf324c
Re-order diagonal moves
2018-03-12 15:53:33 -04:00
8c9d52a0a4
King moves
2018-03-12 15:53:33 -04:00
3a421ca213
Knight moves
2018-03-12 15:53:33 -04:00
961920740e
Use Moves.available instead of calling the module directly
2018-03-12 15:53:33 -04:00
a7fbffcb5d
Queen moves
2018-03-12 15:53:33 -04:00
af8027e6d8
💄
2018-03-12 15:53:33 -04:00
47bba0555c
Bishop moves
2018-03-12 15:53:32 -04:00
8efecebc4a
Stop all other pieces causing an error
2018-03-12 15:53:32 -04:00
568c2cf7ff
Add Rook moves
2018-03-12 15:53:32 -04:00
e608d9556d
Merge pull request #33 from danbee/dependabot/hex/phoenix_html-2.11.0
...
Bump phoenix_html from 2.10.5 to 2.11.0
2018-03-12 15:53:17 -04:00
deaa41b3b1
This shouldn't have been removed
2018-03-12 13:44:21 -04:00
ac90fe71eb
Move all this shit around
2018-03-12 11:37:21 -04:00
4ffc61f075
Fix a couple of warnings
2018-03-12 11:29:22 -04:00
375be4711c
Show available moves for pawn
2018-03-12 11:29:22 -04:00
c64d40f99a
Add basic pawn move generation
2018-03-12 11:29:21 -04:00
e23980537b
Hound cleanups
2018-03-12 11:28:21 -04:00
1c6ff47d8b
Refactor channel service
2018-03-12 11:17:26 -04:00
fe0c58917f
Remove unnecessary API controller
2018-03-12 11:17:26 -04:00
0d68eeabfb
Move everything to websockets
2018-03-12 11:17:26 -04:00
f83e145379
Move all API/socket stuff to the App component
2018-03-12 11:17:26 -04:00
dependabot[bot]
499b169374
Bump phoenix_html from 2.10.5 to 2.11.0
...
Bumps [phoenix_html](https://github.com/phoenixframework/phoenix_html ) from 2.10.5 to 2.11.0.
- [Changelog](https://github.com/phoenixframework/phoenix_html/blob/master/CHANGELOG.md )
- [Commits](https://github.com/phoenixframework/phoenix_html/compare/v2.10.5...v2.11.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-03-12 15:17:17 +00:00
817514782e
Merge pull request #32 from danbee/dependabot/hex/comeonin-4.1.1
...
Bump comeonin from 4.1.0 to 4.1.1
2018-03-12 11:15:33 -04:00