-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtodo.txt
More file actions
148 lines (89 loc) · 3.2 KB
/
Copy pathtodo.txt
File metadata and controls
148 lines (89 loc) · 3.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
BINGO:
TODO:
want to possibly be able to play back how the won happened and by who? for now go for easier.
create user
users cards (owned)
users participation
simple version would be just link to cards played?
users wins
users ticked items
create anom user
given a unique id
must give a name
create card
set name
add items
every card needs:
- card name
- card unique url (short, nice and shareable)
- card creation date
- card owner + id? (could be anom)
owner: -name -id -email
- card items
card items:
- text
during play:
- card id and instance no
- progress / length
the instance is the multi-player in play, we only need to fire a win state back to server if they select all items.
we need to alert to a loss state if someone wins back to those still playing. Also if someone is close to winning we should send a mini alert about that.
cards are masters in their own right, they just happen to have an owner which is secondary.
Cards can be copied but the original link will be killed so its a new unique card.
each card handles its players? joiners, anoms?
cards will be killed/archived after a month of inactivity. can only be re-opened by a real user.
if someone is playing as anon and decide they like the game, signing up creating a user account should be seamless and save their activity?
TODO:
figure out instance scope?
- Person creates a game
- Game is created and link sent back + offered?
- Person makes a request to link address
- random instance id created if not specified?
- instance is created on server
the id it's self doesnt matter, it's just a signature if you want to join a group they'd all have the same id thats made up.
- Instance is then sent back as data?
- Anyone reqesting with that ID will join THIS instance.
player creates
board is created
link sent back
player joins from that link + (no id), no id specified is given a new instance
player joins from that link + (id), joins current instance played
all players updates will be PINGED back to THIS instance
when someone wins this instance alerts on the ping. GAme is over and will be shutdown either after 1 day of inactivity or 1 hour after the win.
new idea:
needs:
get board data
create board data
update board data
delete board data
board create new instance
board join random instance
board join specific instance
board get instance progress
board send client progress
Create/Editing/Removing a board:
post:/api/board/create
get:/api/board/board-id
put:/api/board/board-id
delete:/api/board/board-id
Getting/Joining rando or specific instance:
get:/api/instance/board-id/create
get:/api/instance/board-id/random
get:/api/instance/board-id/instance-id
Getting Sending instance info:
get:/api/instance/instance-id
player join (body info)
post:/api/instance/instance-id
player update (body info)
put:/api/instance/instance-id
player leave (body info)
delete:/api/instance/instance-id
first player to join is Admin, when they leave board is shutdown completely.
players send:
- unique id
- animal icon?
- current score
- words selected
server sends on update:
- highest score (anon)
- on win, which animal + id
- which words selected by everyone