67f0d8f45e
Split out move feature tests and add opponent test
2018-03-09 15:29:33 -05:00
a05d4ad2e3
Update layout and CSS
2018-03-05 10:19:47 -05:00
e9cf51e57f
Add some tests for unsuccessful registration
2018-03-03 20:24:33 -05:00
155284139e
Change username to email
2018-03-03 20:24:33 -05:00
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
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
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
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
ea79ba962a
Games are now associated to a user
2018-02-18 11:51:36 -05:00
d5b8f7d7c2
Add uniqueness constraint
2018-02-02 15:42:07 -05:00
0568b69cbb
Move user creation in tests to a factory
2018-02-02 14:37:20 -05:00
ddcb204758
Make session language consistent
2018-02-02 10:31:05 -05:00
1299d4f5e5
User can login and create games
2018-02-02 10:31:05 -05:00
9fb960fa5e
Add log in link and fix game tests
2018-02-02 10:31:04 -05:00
558b4a5ff9
Registration works
2018-02-02 10:31:04 -05:00
c080985fc4
Add invalid username test
2018-02-02 10:31:04 -05:00
374524bb1d
User can sign in
2018-02-02 10:31:04 -05:00
065e7e02c9
Fix JS and switch to Wallaby
2018-01-19 16:17:35 -05:00
41a9faabc9
Fix up tests after 1.3 upgrade
2018-01-15 16:06:00 -05:00
3397f2048a
Fix warnings
2017-01-19 12:23:10 +00:00
7ff1b03f89
Refactor the board data structure
...
Now we're only storing the pieces keyed by the piece position rather
than storing the entire board as a set of nested Maps. This makes moving
pieces much easier. We're also now storing the position as a pair of
array indices which should make calculating the possible moves easier.
2017-01-18 16:36:38 +00:00
549ba445bb
Test moving of a piece
2016-12-22 18:44:01 -05:00
d888ab8d83
Make sure the JS works in PhantomJS
...
PhantomJS does not implement `Object.assign` which is how we were
updating the state immutably. I've switched it over to use the
ImmutableJS library instead.
2016-12-22 10:28:33 +00:00