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

499 Commits

Author SHA1 Message Date
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
46c3109b7c
Game now has an opponent 2018-02-23 13:51:21 -05:00
5ac47f3ac7
Add opponent association 2018-02-23 13:51:21 -05:00
22294bfcda
Apparently we don't need to install Yarn 2018-02-23 11:59:55 -05:00
704b1b74ae
Split Codeship scripts up and install Yarn 2018-02-23 11:50:36 -05:00
7f754af252
Switch to Yarn
https://github.com/npm/npm/issues/19883
2018-02-22 13:13:48 -05:00
00ff6ee218
Merge pull request #18 from danbee/hound-will-probably-have-a-lot-to-say
Unleash the Hound! 🐕
2018-02-20 15:25:30 -05:00
e2a5caf477
Merge pull request #19 from danbee/dependabot/hex/gettext-0.15.0
Bump gettext from 0.14.1 to 0.15.0
2018-02-20 15:25:18 -05:00
6f0088e590
Use SSL for database 2018-02-20 13:12:29 -05:00
708c77bff1
Update manifest config 2018-02-20 13:12:19 -05:00
4d3f592a0e
Start chain with value 2018-02-20 13:07:02 -05:00
820ba20066
Merge pull request #20 from jesseshieh/js/gigalixir
Gigalixir Deploys
2018-02-20 13:06:51 -05:00
Jesse
0190efa734 Gigalixir Deploys 2018-02-20 09:25:00 -08:00
dependabot[bot]
22ef184578 Bump gettext from 0.14.1 to 0.15.0
Bumps [gettext](https://github.com/elixir-lang/gettext) from 0.14.1 to 0.15.0.
- [Changelog](https://github.com/elixir-lang/gettext/blob/master/CHANGELOG.md)
- [Commits](https://github.com/elixir-lang/gettext/compare/v0.14.1...v0.15.0)
2018-02-20 16:24:47 +00:00
80e6854d5f
More Distillery changes 2018-02-20 11:23:35 -05:00
be719febd2
Add Python for Gigalixir 2018-02-19 21:53:08 -05:00
13ba070631
Changes for Gigalixir deploy 2018-02-19 17:43:04 -05:00
80160d7594
Change selected square colour to green 2018-02-19 15:13:01 -05:00
3c6cceabaa
Small style fix 2018-02-19 11:20:28 -05:00
e88545de0c
Fix some Credo warnings 2018-02-19 11:16:00 -05:00
a080e89a35
Unleash the Hound! 🐕 2018-02-19 10:51:23 -05:00
e8a148e283
Make the board grey 2018-02-19 10:16:17 -05:00
5efea25b3a
Blue looks better
Green felt too much like a casino 🃏. Chess is not a game of chance!
2018-02-19 09:38:54 -05:00