Commit graph

464 commits

Author SHA1 Message Date
Sorrel Bri
4a90b933a7 add logic for legal check that prevents moves at points with no liberties 2020-04-24 00:16:31 -07:00
Sorrel Bri
089783c82d add setLiberties to Point and refactor groups object to include liberties for each group 2020-04-23 00:24:12 -07:00
Sorrel Bri
e553601af7 add join group logic to Point, triggered by Game.makeMove 2020-04-22 23:17:46 -07:00
Sorrel Bri
b1f29f3d2d refactor getNeighbors in initBoard for array index lookup instead of boardState.find(...) 2020-04-20 17:39:52 -07:00
Sorrel Bri
bdfb6ebe85 add getNeighbors to initBoard() allowing Points to directly reference neighbors 2020-04-20 17:34:49 -07:00
Sorrel Bri
a54d4bf7e4 stub makeMove in Game v2 API 2020-04-19 22:58:26 -07:00
Sorrel Bri
37db281d08 add getMeta to Game API 2020-04-19 22:26:04 -07:00
Sorrel Bri
41e6e662e9 initialize board for all board sizes and handicap amounts 2020-04-19 15:02:09 -07:00
Sorrel Bri
8fb1b80cb6 add initGame to v2 Game logic service 2020-04-18 20:04:00 -07:00
Sorrel Bri
e53a8f4f2a Merge branch 'game_logic' 2020-04-17 17:17:18 -07:00
Sorrel Bri
7408e409aa patch userValidator middleware to remove deprecated sanitize function 2020-04-17 17:14:31 -07:00
Sorrel Bri
c533c7837c patch failing frontend tests 2020-04-17 00:01:04 -07:00
Sorrel Bri
dde97e2a1f patch lerna bootstrap command 2020-04-16 23:19:39 -07:00
Sorrel Bri
2c39fe1156 patch Game logic neighboring stone bug 2020-04-16 20:28:40 -07:00
Sorrel Bri
a1f7c45536 update readme with setup 2020-04-15 23:16:00 -07:00
Sorrel Bri
f2c0ce62fe patch link underline styles 2020-04-13 18:58:55 -07:00
Sorrel Bri
176c087599 style RoomDetail component 2020-04-12 22:54:20 -07:00
Sorrel Bri
0dbf0ed844 patch to Game button style 2020-04-12 14:50:03 -07:00
Sorrel Bri
a35cad24df patch link style 2020-04-12 14:22:10 -07:00
Sorrel Bri
c03ee1020d stub RoomDetail component 2020-04-12 00:19:28 -07:00
Sorrel Bri
c54dcb41a8 stub RoomDetail component 2020-04-12 00:19:21 -07:00
sorrelbri
a9243840a6 refactor Room button styles to remove cruft and clean up 2020-04-11 21:43:48 -07:00
sorrelbri
a9025aca8f style small Room button 2020-04-11 21:39:09 -07:00
sorrelbri
0368325199 refactor to remove crufty renderOpenGame function from Game Button 2020-04-10 20:25:11 -07:00
sorrelbri
bf836d50d7 refactor to remove crufty renderOpenGame function from Game Button 2020-04-10 20:19:58 -07:00
sorrelbri
16868aea1a refactor to remove crufty renderOpenGame function from Game Button 2020-04-10 20:05:42 -07:00
sorrelbri
8a60d82832 patch styling of game room drop shadows, refactor GameButton for open games 2020-04-10 20:03:27 -07:00
sorrelbri
30f65b85b3 add react and react-dom to play-node-go package.json 2020-03-30 11:33:07 -07:00
sorrelbri
d5fe96e0e9 fix vulnerabilities in play-node-go dependencies 2020-03-30 00:24:00 -07:00
sorrelbri
3789401918 raise react dependencies to root package.json 2020-02-10 22:23:44 -08:00
sorrelbri
45cbe56564 raise react dependencies to root package.json 2020-02-10 22:21:31 -08:00
sorrelbri
316396f218 remove psql references from circleci config and test suite 2020-02-10 22:09:07 -08:00
sorrelbri
8f18d0685c remove psql references from circleci config and test suite 2020-02-10 22:07:35 -08:00
sorrelbri
7b63a2f76d remove psql references from circleci config and test suite 2020-02-10 22:05:33 -08:00
sorrelbri
6ce03c3449 patch reducer compile warnings 2020-02-07 18:15:22 -08:00
sorrelbri
3e2a956634 patch reducer compile warnings 2020-02-07 18:03:28 -08:00
sorrelbri
401076cd50 patch reducer compile warnings 2020-02-07 17:59:28 -08:00
sorrelbri
24a8a4e991 patch reducer compile warnings 2020-02-07 17:55:25 -08:00
sorrelbri
3f15e48eef remove flow from app 2020-02-07 17:51:09 -08:00
sorrelbri
c3842a0589 move flow to dev dependencies 2020-02-07 16:23:58 -08:00
sorrelbri
2c5a0534d7 patch React compilation warnings and useEffect dependencies 2020-02-07 16:11:01 -08:00
sorrelbri
4c7fa1512d patch React compilation warnings and useEffect dependencies 2020-02-07 16:01:54 -08:00
sorrelbri
e050f295ae collect dev dependencies in root package.json 2020-02-05 17:14:16 -08:00
sorrelbri
29f3385ba8 collect dev dependencies in root package.json 2020-02-05 17:07:08 -08:00
sorrelbri
e69aa9b326 package server and play-node-go 2020-02-05 16:54:09 -08:00
Sorrel Bri
7223d98c36 init lerna 2020-02-05 16:45:28 -08:00
Sorrel Bri
497db97161 stub nav form styles and fix board span bug 2020-02-05 16:45:28 -08:00
Sorrel Bri
a29431e67d decoupled show Auth form logic from Home sidebar for use in other sidebars on Auth errors 2020-02-05 16:45:27 -08:00
Sorrel Bri
72fb0ae243 style player area on game screen 2020-02-05 16:45:27 -08:00
Sorrel Bri
72a533a285 stub render board state from make_move 2020-02-05 16:45:27 -08:00
Sorrel Bri
9b82236283 stub make move socket message to add move to game 2020-02-05 16:45:27 -08:00
Sorrel Bri
23cd485cbb refactor make move to serve game meta data with game record 2020-02-05 16:45:27 -08:00
Sorrel Bri
76f29cf9d3 check legality of move prior to posting 2020-02-05 16:45:27 -08:00
Sorrel Bri
be294f669c stub make move to game service 2020-02-05 16:45:27 -08:00
Sorrel Bri
95724c39db stub game services to store active games 2020-02-05 16:45:27 -08:00
Sorrel Bri
4851f31744 stub board on game page 2020-02-05 16:45:26 -08:00
Sorrel Bri
e0830bed5c stub Game components 2020-02-05 16:45:26 -08:00
Sorrel Bri
f37def2688 add seed moves 2020-02-05 16:45:26 -08:00
Sorrel Bri
fb9bc0d8cf stub game connection via socket room 2020-02-05 16:45:26 -08:00
Sorrel Bri
fd72f135dd stub game connection via socket room 2020-02-05 16:45:26 -08:00
Sorrel Bri
d6ec6c3163 patch to cleanup reducer directory filenames 2020-02-05 16:45:26 -08:00
Sorrel Bri
7bca0e9a04 stub default falsey values for initState function to prevent crash on 500 2020-02-05 16:45:25 -08:00
Sorrel Bri
ffda6a8164 create Loading component with pinwheel ko animation 2020-02-05 16:45:25 -08:00
Sorrel Bri
45b3604fb2 add table styling to game buttons in game room 2020-02-05 16:45:25 -08:00
Sorrel Bri
3195a73644 refactor all jsx to BEM 2020-02-05 16:45:25 -08:00
Sorrel Bri
6e0ec94676 debug room socket connect dispatch 2020-02-05 16:45:25 -08:00
Sorrel Bri
a0d721ab9a refactor sockets to be launched with namespace by components 2020-02-05 16:45:25 -08:00
Sorrel Bri
61b13ab97a refacor sockets on server and client to utilize dispatch for socket meessages 2020-02-05 16:45:25 -08:00
Sorrel Bri
86a75d146e stub socket connection to game id namespace 2020-02-05 16:45:25 -08:00
Sorrel Bri
a4a9a72ece stub socket connection to game id namespace 2020-02-05 16:45:25 -08:00
Sorrel Bri
026af700df stub games/:id endpoint to join game socket room 2020-02-05 16:45:24 -08:00
Sorrel Bri
b8681e8ef5 refactor join_game_request to require unique users 2020-02-05 16:45:24 -08:00
Sorrel Bri
11855c57d4 connect join_game_request socket at client and server 2020-02-05 16:45:24 -08:00
Sorrel Bri
6757553785 patch rooms/:id failure to return multiple games 2020-02-05 16:45:24 -08:00
Sorrel Bri
59b5d31c35 patch no-query bug in rooms/ endpoint 2020-02-05 16:45:24 -08:00
Sorrel Bri
8589976264 refactor api rooms/:id endpoint to deliver current room without table join 2020-02-05 16:45:24 -08:00
Sorrel Bri
775e1fc050 stub room display with messages and game link 2020-02-05 16:45:24 -08:00
Sorrel Bri
38014ac497 dispatch all room data to state upon rooms/:id 2020-02-05 16:45:24 -08:00
Sorrel Bri
f94f4fd2c0 refactor api room endpoint to return unjoined game room data 2020-02-05 16:45:23 -08:00
Sorrel Bri
695d1ea2b1 add SET_MESSAGES to reducer 2020-02-05 16:45:23 -08:00
Sorrel Bri
6467004a89 refactor services and reducers to parse JSON before data hits dispatch 2020-02-05 16:45:23 -08:00
Sorrel Bri
83d3abf188 add client routing to rooms/:id, move socket(rooms/roomId) connect from Home page to Room page 2020-02-05 16:45:23 -08:00
Sorrel Bri
661fc74df2 serve room with message data from api/v1/rooms/:id 2020-02-05 16:45:23 -08:00
Sorrel Bri
aa0c850aab serve room with joined game data from api/v1/rooms/:id 2020-02-05 16:45:23 -08:00
Sorrel Bri
c001b939d1 stub room socket connection (client + server) 2020-02-05 16:45:23 -08:00
Sorrel Bri
e8867b9634 add message table with migration 2020-02-05 16:45:23 -08:00
Sorrel Bri
464a8ffbf4 add move table with migration 2020-02-05 16:45:22 -08:00
Sorrel Bri
f3d21e0444 add game table with seed and migration 2020-02-05 16:45:22 -08:00
Sorrel Bri
522782e3a5 add time_setting table with seed and migration 2020-02-05 16:45:22 -08:00
Sorrel Bri
d9edea315a patch remove unnecessary socket.io cookie 2020-02-05 16:45:22 -08:00
Sorrel Bri
3e8e99a816 Merge branch 'gameroom_endpoint' 2020-02-05 16:45:22 -08:00
Sorrel Bri
1ef3adc3d7 patch https cookies in production 2020-02-05 16:45:22 -08:00
Sorrel Bri
0fb6a7bfb8 patch https cookies in production 2020-02-05 16:45:22 -08:00
Sorrel Bri
05b7f338ff hook SET_ROOMS into rooms Service 2020-02-05 16:45:22 -08:00
Sorrel Bri
8ad488c3ce add SET_ROOMS dispatch 2020-02-05 16:45:22 -08:00
Sorrel Bri
6114c20e2c serve all public rooms at rooms index 2020-02-05 16:45:22 -08:00
Sorrel Bri
762c4d93a8 stub rooms index route and controller 2020-02-05 16:45:22 -08:00
Sorrel Bri
47856773eb add room migration and simple seeds 2020-02-05 16:45:21 -08:00
Sorrel Bri
d706a9d137 serve basic page at api endpoint to redirect user 2020-02-05 16:45:21 -08:00
Sorrel Bri
6669d3f16b patch component references in pages/ 2020-02-05 16:45:21 -08:00