Commit Graph

60 Commits

Author SHA1 Message Date
89a94ca081 add ready checking at session level 2021-09-30 21:00:49 -04:00
d183f2d1a3 SessionLeave can leave player queue 2021-09-29 16:40:17 -04:00
2073b4d1f0 don't allow commands to be played in nil games 2021-09-29 15:44:01 -04:00
a4227c9728 only matchmake when a new player enters the queue 2021-09-29 15:26:18 -04:00
deb6d24282 only create games when match is joined, remove old players from queue 2021-09-29 14:51:58 -04:00
f5eac37b06 clean out stale matches 2021-09-27 16:51:40 -04:00
351e5eebc6 if the other player is already readyed up, start the game 2021-09-26 14:05:15 -04:00
Steve Ryan
ba328c6847 don't check origin in server: 2021-09-24 10:57:08 -04:00
ae073733c7 logging tweak 2021-09-23 13:15:22 -04:00
80578e089d don't stick on broadcasts 2021-09-23 13:13:31 -04:00
76e20ea130 matchmaking cleanup 2021-09-23 13:04:34 -04:00
b5f1740d22 add protocol description 2021-07-29 17:40:21 -04:00
884766dc72 opt into polling, clients no longer crash on leave 2021-07-29 17:40:11 -04:00
816e5cf45d formatting 2021-07-29 15:29:49 -04:00
dbc898f7f6 formatting 2021-07-29 15:29:31 -04:00
cf2851f376 update readme, hand display in client2 2021-07-29 15:03:07 -04:00
f06754fcfe more broadcasts, tui client running 2021-07-29 14:48:36 -04:00
379719a2e2 begin tui client 2021-07-26 17:34:04 -04:00
d8777b0dda maybe don't give sentinal scourges deck huh 2021-07-26 14:19:05 -04:00
6eb24636e5 add broadcasts 2021-07-26 13:02:00 -04:00
bff4f57e86 eight disapears a turn sooner 2021-07-26 11:52:43 -04:00
dff9f6ce60 fix effect stacking 2021-07-26 11:44:16 -04:00
2e512b655b apply effect stacks, then parse stacks 2021-07-26 11:17:45 -04:00
08a3559c99 argument safety, reset card effect stacks on tick 2021-07-25 22:53:40 -04:00
8a20d97ad6 first player can draw 2021-07-25 22:16:50 -04:00
00bd3539b0 don't panic on drawing from empty scry 2021-07-25 22:03:31 -04:00
73f4f8afee actually accept multiple matches 2021-07-25 17:39:48 -04:00
c5e8f2d404 don't apply effects to empty cards 2021-07-25 17:23:12 -04:00
37d0702d5c allow server to handle multiple matches 2021-07-25 17:22:57 -04:00
907cf269cd move websocket server out of internal 2021-07-25 16:32:41 -04:00
58a853a241 make server a bit more resiliant 2021-07-25 16:23:39 -04:00
6f91491127 add flags to client 2021-07-25 15:41:56 -04:00
7d1a358438 readme touchup 2021-07-25 15:35:57 -04:00
26a7c137f8 move to effect based system 2021-07-25 15:33:47 -04:00
a623639af3 probably should test code before commiting tbh 2021-07-25 13:47:36 -04:00
a6f5eb607c Merge branch 'oracle' 2021-07-25 13:43:41 -04:00
4c37ad270d implement ace, differ between spells (valk) 2021-07-25 13:35:49 -04:00
d1845760fe actually use GetRow since I can, implement 2 and 3, cards have owners and positions 2021-07-25 13:27:12 -04:00
22a3e0c8e8 being actually adding card effects 2021-07-23 18:57:39 -04:00
0723811faf create oracle instead of card objects 2021-07-23 18:33:17 -04:00
2b76ae5b5a client improvements, but bug with sick 2021-07-23 17:42:12 -04:00
eb7b405641 cards are now passed as PortableCard objects
client supports all actions
A bunch of stuff uses *Decks now instead of []Card since json marshaling
all of this code is absolutely awful
2021-07-23 16:43:39 -04:00
7c593faa51 update README, makefile 2021-07-23 12:11:06 -04:00
277189f229 intro server and client 2021-07-22 18:19:21 -04:00
beab95579c local demo works 2021-07-22 15:55:52 -04:00
15f1ec5dee update mod 2021-07-22 15:39:57 -04:00
4473127d0a refactor 2021-07-22 15:37:25 -04:00
89c69d6037 you can win the game now 2021-07-22 13:43:28 -04:00
d05b670e23 debug commands 2021-07-22 13:21:49 -04:00
b09d0b37f1 use cmd and cmd_res, return views 2021-07-22 13:09:56 -04:00