Commit graph

53 commits

Author SHA1 Message Date
Oliver Akins
5fbbf09144
Add a GamePiece type 2022-06-29 00:00:21 -06:00
Oliver Akins
be50ff62d9
Fix the problems the tests found 2022-06-28 23:59:56 -06:00
Oliver Akins
af5e74d4af
Add tests for the tractorBeam function 2022-06-28 23:59:40 -06:00
Oliver Akins
a7344e36e1
Begin implementing the functions that actually modify the game board 2022-06-28 00:44:44 -06:00
Oliver Akins
54ffc0a0f4
Add a Board type for easier type consistency 2022-06-28 00:43:52 -06:00
Oliver Akins
449a4b25d9
Don't compile the .spec.ts files 2022-06-23 11:38:47 -06:00
Oliver Akins
726067b1e5
Add the test and watch* rules to the PHONY list 2022-06-22 00:40:10 -06:00
Oliver Akins
28a5c81241
Adjust the echo used in the test command 2022-06-22 00:39:27 -06:00
Oliver Akins
699c07f59e
Tweak it from == 1 to <= 1 just in case 2022-06-22 00:38:23 -06:00
Oliver Akins
7b97beaeb1
Rename the function in the test description 2022-06-22 00:38:08 -06:00
Oliver Akins
670729c892
Apply a fix to the determineDirection function that makes it conform to the rule specification 2022-06-22 00:35:03 -06:00
Oliver Akins
3b78f224df
Add tests for the movementDirection function 2022-06-22 00:34:13 -06:00
Oliver Akins
4feafba99b
Add the stripInternal option 2022-06-19 12:58:27 -06:00
Oliver Akins
7af5cf0ce8
Fix bug with the countShips function 2022-06-19 12:42:24 -06:00
Oliver Akins
0f76e83fac
Add test make recipe 2022-06-19 12:41:57 -06:00
Oliver Akins
1167c10707
Allow TS to import countShips internally 2022-06-19 12:41:37 -06:00
Oliver Akins
762e2bdb1b
Add a tests for countShips 2022-06-19 12:41:02 -06:00
Oliver Akins
18f58a6221
Rename the package template to the normal package file and install the required dev deps for testing purposes 2022-06-19 12:40:29 -06:00
Oliver Akins
05a5bfc3af
Don't echo the mkdir command 2022-03-15 23:10:00 -06:00
Oliver Akins
a7a7560201
Add watch rules to the makefile 2022-03-15 23:09:39 -06:00
Oliver Akins
5da30d572f
Add a Forbidden status 2022-03-13 18:30:46 -06:00
Oliver Akins
c68849fd1a
Add docstrings to the IGameOption type 2022-03-13 01:48:23 -06:00
Oliver Akins
8eb4a3c48f
Add descriptions to the option objects 2022-03-13 01:45:32 -06:00
Oliver Akins
6e9ff8b751
Add the list of game options to the common module and make the multiplayer lobby begin listening to lobby info events + some style tweaks. 2022-03-13 01:33:38 -06:00
Oliver Akins
dbce447297
Add the host boolean to the playerdata type 2022-03-12 23:14:57 -06:00
Oliver Akins
0ddf5d8a14
Add a game count to the server info response 2022-03-07 23:36:41 -06:00
Oliver Akins
f9f14422d8
Fix the exports in the common module 2022-03-07 23:36:09 -06:00
Oliver Akins
d1e37d8fec
Add ship design constants in the shared module 2022-03-07 23:35:56 -06:00
Oliver Akins
1ccc3b6c33
Update types to be in-line with the events 2022-03-07 17:58:23 -06:00
Oliver Akins
c760b0f36d
Add a type that has genericized request data 2022-03-07 17:57:48 -06:00
Oliver Akins
a8311a6834
Update the server info interface to be inline with my new format for interfaces 2022-03-07 00:49:59 -06:00
Oliver Akins
06cfea7564
Remove old event data interfaces 2022-03-07 00:49:16 -06:00
Oliver Akins
4e61f0283d
Add a makefile to build both ESM and CJS 2022-03-06 23:06:18 -06:00
Oliver Akins
dc3f1a8b1d
Change the common lib from es2020 to commonjs 2022-03-05 00:35:30 -06:00
Oliver-Akins
15da1158c7 Add a type for the fuel card representation 2022-01-09 00:30:47 -06:00
Oliver-Akins
ec37881de7 Make the board argument an array of any type. 2022-01-09 00:30:29 -06:00
Oliver-Akins
b109c0d082 Add the algorithm for helping with ship movement 2022-01-08 21:34:03 -06:00
Oliver-Akins
f25d1ef965 Remove unused file 2022-01-06 16:28:48 -07:00
Oliver-Akins
c5449f1153 Update the type structure, and rename the "game.*" events to "lobby.*" 2022-01-06 16:25:38 -07:00
Oliver-Akins
3b5e643232 Add docs and types for the game.join event 2022-01-05 23:06:22 -07:00
Oliver-Akins
054fa71b18 Add exports for the new types 2022-01-05 01:26:03 -07:00
Oliver-Akins
005b2c929f Make the ServerResponse use the Status enum as the type 2022-01-05 01:25:49 -07:00
Oliver-Akins
c93b903094 Add docs and types for the game join event 2022-01-05 01:25:21 -07:00
Oliver-Akins
81d9f0a5bf Remove the IServerInfoRequest interface since it wasn't in use 2022-01-05 01:24:34 -07:00
Oliver-Akins
642e1b2de6 Reorder export to make the heirarchy more clear 2022-01-04 20:31:14 -07:00
Oliver-Akins
442230deb6 Add types for the server.info websocket events 2022-01-04 20:30:46 -07:00
Oliver-Akins
20ea2b9fa0 Make the common package actually work with Vite 2022-01-03 21:41:09 -07:00
Oliver-Akins
7db70bc4ec Rename the event identifier in the type documentation 2022-01-03 18:50:35 -07:00
Oliver-Akins
1e18179cc6 Convert exports to wildcard instead of named 2022-01-03 18:40:48 -07:00
Oliver-Akins
dbedecc900 Prefix interfaces for data with a capital I 2022-01-03 18:40:09 -07:00