Commit Graph

88 Commits

Author SHA1 Message Date
Bel LaPointe
57dd66e510 impl first game reset but realize it must be an event to broadcast to all players 2024-12-15 14:06:08 -07:00
Bel LaPointe
f1282f588d impl ws kill 2024-12-15 13:56:59 -07:00
Bel LaPointe
706d55631b games.UserByName 2024-12-15 13:50:27 -07:00
Bel LaPointe
0b22ba4bd2 random name generation done 2024-12-15 13:41:57 -07:00
Bel LaPointe
f7a303168a GameByName doesnt take uid 2024-12-15 13:26:28 -07:00
Bel LaPointe
37291e68aa ugs listen needs love 2024-12-15 13:17:36 -07:00
Bel LaPointe
5109dc9fdb test usergameserver.State after game completes WOO 2024-12-15 13:16:04 -07:00
Bel LaPointe
fc899056e0 test game state after some kills 2024-12-15 13:13:03 -07:00
Bel LaPointe
8d73f97c3a bugfix if victim was targeting killer then killer cant target itself 2024-12-15 13:03:37 -07:00
Bel LaPointe
598cb0684c test UserGameState of freshly started game 2024-12-15 12:52:10 -07:00
Bel LaPointe
aba5225ed2 unittest not impls 2024-12-15 12:42:53 -07:00
Bel LaPointe
f3f70e10f4 test UserGameServer unstarted state has all empty players 2024-12-15 12:39:36 -07:00
Bel LaPointe
1e4198b291 drop temp fail 2024-12-15 12:27:17 -07:00
Bel LaPointe
c760dac44b ws blindly pushes public, private and lets UserGameServer limit visibility of user 2024-12-15 12:26:30 -07:00
Bel LaPointe
c1933dc180 sort ws tags 2024-12-15 12:03:21 -07:00
Bel LaPointe
9a74575e6c refactor out ws.inProgressMsgItem 2024-12-15 11:45:42 -07:00
Bel LaPointe
8d0ded9ee9 refactors 2024-12-15 11:35:00 -07:00
Bel LaPointe
e8817f9e74 refactor out incomplete msg 2024-12-15 11:32:23 -07:00
Bel LaPointe
3a83fe7c17 refactor out ws.unstartedMsg 2024-12-15 11:28:42 -07:00
Bel LaPointe
c6da3d17a1 refactor pushing state over websocket into a func 2024-12-15 11:24:51 -07:00
Bel LaPointe
64165c5745 refactor pushing state over websocket into a func 2024-12-15 11:24:32 -07:00
Bel LaPointe
74a403fa6d drop logs 2024-12-15 11:10:37 -07:00
Bel LaPointe
e95b63d9ce renmae 2024-12-15 11:09:44 -07:00
Bel LaPointe
2c3e870750 ugs aliases game state, shorter help sentences 2024-12-15 11:09:25 -07:00
Bel LaPointe
c3e9c18e95 refactor 2024-12-15 11:06:13 -07:00
Bel LaPointe
39c9eae7ad ugs.more blocks until event arrives 2024-12-15 11:05:39 -07:00
Bel LaPointe
0d44fd56ed extract reading from websocket into UserGameServer 2024-12-15 11:01:48 -07:00
Bel LaPointe
51006c7946 total coverage of db and games naisu 2024-12-15 10:49:33 -07:00
Bel LaPointe
94d3d97645 test fill 2024-12-15 10:23:13 -07:00
Bel LaPointe
eb3a30ec8a test hangs due to fill inf looping 2024-12-15 10:19:04 -07:00
Bel LaPointe
6340469d53 killing them 200 line functions one at a time 2024-12-15 09:55:08 -07:00
Bel LaPointe
d05ab6d0ec killing does not change assignment 2024-12-15 09:51:40 -07:00
Bel LaPointe
ae593bc092 refactor making new AllKillWords just without assignees and now 2024-12-15 09:50:34 -07:00
Bel LaPointe
ff5071215a functional looking 2024-12-15 09:49:09 -07:00
Bel LaPointe
b9d06f81ba functional looking 2024-12-15 09:47:11 -07:00
Bel LaPointe
51c7cc4496 sh 2024-12-15 09:46:21 -07:00
Bel LaPointe
d7e4196f61 refactorinnng 2024-12-15 09:44:13 -07:00
Bel LaPointe
c18f154328 refacotr picking unused word out of AssignmentRotation body 2024-12-15 09:24:04 -07:00
Bel LaPointe
8d9815ee90 games.go tested 2024-12-15 09:11:17 -07:00
Bel LaPointe
1e25ef7a98 ws only computes game state if events since last time 2024-12-15 08:51:12 -07:00
Bel LaPointe
d1c4738796 GameState uses GameEvents 2024-12-15 08:49:43 -07:00
Bel LaPointe
1c6025e78c refactor to share 2024-12-15 08:44:51 -07:00
Bel LaPointe
52aad4008c add GET/v1/state/XYZ 2024-12-15 02:50:42 -07:00
Bel LaPointe
808266d9c9 todo 2024-12-15 02:47:51 -07:00
Bel LaPointe
a99cb0e102 todo numbah one is TEST 2024-12-15 02:47:01 -07:00
Bel LaPointe
ba21848373 todo 2024-12-15 02:46:46 -07:00
Bel LaPointe
cb335639dd i think it is all todoed out 2024-12-15 02:43:59 -07:00
Bel LaPointe
264b165f1c o i think that looks like everything but is hard to tell 2024-12-15 02:36:18 -07:00
Bel LaPointe
5587467a2d PlayerState.Points() 2024-12-15 02:30:44 -07:00
Bel LaPointe
2a635bc8b5 compiles 2024-12-15 02:26:52 -07:00