4bf4c4cb45
Fix registration test
2018-03-03 20:24:32 -05:00
7cec3fb1a9
Big test/factory refactor
2018-03-03 20:24:32 -05:00
c92b1b5aef
Add name to user
2018-03-03 20:24:32 -05:00
4340d0e5bf
Add Codeship deploy script
2018-03-02 15:26:53 -05:00
dcff5712b8
Respond to feedback
2018-03-02 13:03:31 -05:00
eb04f275e2
Make board size a variable
...
And make all the internal sizes dependent on that size. This will make
it easier to resize the board later.
2018-03-02 11:45:36 -05:00
36670245d7
More move tests
...
Specifically:
* Test that a user cannot move an opponents pieces
* Test that a user cannot move if it's not their turn
* Test that a move is reflected on the opponents view
2018-03-01 20:16:21 -05:00
846bba69e0
Couple of style fixes
2018-03-01 09:05:07 -05:00
eb7e171551
Figure we should validate required first
2018-03-01 08:55:44 -05:00
760ffdc35d
Vim sort did not do the job
2018-03-01 08:55:15 -05:00
b24a485f4e
Clean up SCSS
2018-03-01 08:53:35 -05:00
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