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

321 Commits

Author SHA1 Message Date
a8bb242385
Better way of setting defaults 2018-03-01 08:46:53 -05:00
d982d19713
Fix linter errors 2018-02-28 11:02:59 -05:00
059b45d40d
More idiomatic Elixir 2018-02-28 10:12:26 -05:00
3c50811d24
Wrong app name in production config 2018-02-28 10:12:12 -05:00
4470e1f926
🐕🔫 2018-02-28 10:11:54 -05:00
25bc337424
Add hound configuration 2018-02-27 23:02:32 -05:00
8ec51f6ea8
Hound fix 2018-02-27 22:49:00 -05:00
73c662d299
Ensure squares can be clicked on in tests 2018-02-27 22:34:51 -05:00
fe3c223a13
Let's only log on connection error 2018-02-27 22:16:03 -05:00
d129094b6d
Missed a td 2018-02-27 22:15:15 -05:00
3eb17d7d28
Add Elixir buildpack config 2018-02-27 20:25:09 -05:00
f699c88444
Render the board with flexbox
For realsies this time!
2018-02-27 20:20:15 -05:00
559bf394ef
Update Elixir version
It was running on this version anyway!
2018-02-27 19:27:41 -05:00
1a13a178a1
Add check origin config for production 2018-02-26 23:26:04 -05:00
59f16d7413
Add debugging for channels 2018-02-26 22:59:55 -05:00
538758d97f
Sort CSS properties 2018-02-26 22:59:44 -05:00
c95f1c6032
Add turn indicator 2018-02-26 22:51:23 -05:00
90e330e3a0
Restyle chessboard 2018-02-26 10:14:41 -05:00
a39943559e
Missed a bunch of semicolons 2018-02-25 18:23:55 -05:00
eadac8f89c
Use ES6 for JSHint 2018-02-25 18:21:42 -05:00
b0c6ea1ff4
Game updates are now pushed to each client 2018-02-25 16:45:15 -05:00
3b3f3e687a
Create a channel and connect the socket 2018-02-25 15:07:45 -05:00
c0facfa4d5
Players take turns
Restricts players to only be able to move their own pieces and only when
it's their turn.
2018-02-24 15:52:22 -05:00
2f1411f075
Render the board correctly for the black player 2018-02-23 17:26:37 -05:00
03b974be9e
Fix hound warnings 2018-02-23 16:33:18 -05:00
65caee7e6e
Chess board is now a table 2018-02-23 16:00:44 -05:00
9681d80183
Use flexbox to render the board
Also minor refactor on the CSS
2018-02-23 14:28:21 -05:00
e76d5a9fce
Application report themselves 2018-02-23 13:53:40 -05:00
7b2fa5cc8e
Update game data test to account for foreign key constraint 2018-02-23 13:51:25 -05:00
a742c8faf0
Add foreign key constraints to game
Not that they seem to be working 🤔
2018-02-23 13:51:24 -05:00
34b985fa77
Refactor controllers a bit 2018-02-23 13:51:24 -05:00
08786460d0
Pipe all the things 2018-02-23 13:51:24 -05:00
c0422693c0
Pull out a required_attrs function 2018-02-23 13:51:24 -05:00
51698cfa4d
Better name for this association 2018-02-23 13:51:24 -05:00
88b5607a86
Pipe all the things! 2018-02-23 13:51:24 -05:00
4745a2cce1
Add back the user/opponent preload 2018-02-23 13:51:23 -05:00
66c2bf2817
Refactor Game controller queries 2018-02-23 13:51:23 -05:00
7d31ebdc98
Restrict access to API update endpoint 2018-02-23 13:51:23 -05:00
3f3943ee5d
Update deps 2018-02-23 13:51:23 -05:00
21d843ebc8
Refactor current_user 2018-02-23 13:51:23 -05:00
73142f8a09
Be specific about the SCSS processor 2018-02-23 13:51:23 -05:00
37a512d8d4
These need to be quoted
Turns out they get interpreted as CSS colours if they're not.
2018-02-23 13:51:22 -05:00
c2bb7f3052
Add API controller test 2018-02-23 13:51:22 -05:00
5511ef0a06
Restrict game viewing to players 2018-02-23 13:51:22 -05:00
070f9b1474
Fix and refactor game controller tests 2018-02-23 13:51:22 -05:00
8634d7aa9f
Show opponent on game screen 2018-02-23 13:51:22 -05:00
9b47a85d8f
Show correct opponent in the games list 2018-02-23 13:51:22 -05:00
b122c4d44f
Games list shows opponent 2018-02-23 13:51:21 -05:00
8f19a086df
Game controller accepts opponent id 2018-02-23 13:51:21 -05:00
fffff9624e
WIP: Opponent is now required
Only the tests fail with "can't be blank" for some reason...
2018-02-23 13:51:21 -05:00