Commit graph

248 commits

Author SHA1 Message Date
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
a4aa70f992
Add tests for the Player object 2022-06-23 14:05:34 -06:00
Oliver Akins
abba594522
Add a host flag 2022-06-23 13:46:45 -06:00
Oliver Akins
1f6c72ee8a
Add tests for the Deck object 2022-06-23 11:41:01 -06:00
Oliver Akins
040a7ae804
Add a bunch of dependencies for data validation and testing 2022-06-23 11:40:46 -06:00
Oliver Akins
448b089bf9
Create a makefile for ease of use 2022-06-23 11:40:25 -06:00
Oliver Akins
be25b95789
Add data validation to the config 2022-06-23 11:40:09 -06:00
Oliver Akins
4506b97101
Prevent cards that aren't in the unknown from being discarded 2022-06-23 11:39:39 -06:00
Oliver Akins
1aa3e2b8ac
Strip Internal API definitions 2022-06-23 11:39:08 -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
ed715b14e4
Make it so that the game link gets added to the browser URL when joining a game 2022-03-15 23:25:56 -06:00
Oliver Akins
7d39b41b6d
Add functionality to the Copy Game Link button 2022-03-15 23:25:27 -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
b0e2a9e6d4
Instead of using onDestroy, return a function from onMount 2022-03-15 22:38:09 -06:00
Oliver Akins
018ae4fe06
Add a no-op button to copy the game link to the user's clipboard 2022-03-15 01:41:05 -06:00
Oliver Akins
3f96b97194
Add some sanity comments and a full lobby check 2022-03-15 01:37:59 -06:00
Oliver Akins
c340755ba2
Make the JoinLobby modal nicer 2022-03-15 01:34:09 -06:00
Oliver Akins
bcc0664342
Move lobby creation/hosting into it's own modal 2022-03-15 01:07:02 -06:00
Oliver Akins
2dd456897f
Move the error style to be global 2022-03-15 00:21:51 -06:00
Oliver Akins
31cd9a1558
Default the store values so we don't get undefined appearing in the text entries 2022-03-15 00:04:43 -06:00
Oliver Akins
ffc759e267
Tweak import statement 2022-03-13 20:14:31 -06:00
Oliver Akins
9708be3f1e
Tweak imports 2022-03-13 20:14:07 -06:00
Oliver Akins
1b9f3d780e
Add code to handle the lobby info responses 2022-03-13 18:32:15 -06:00
Oliver Akins
2c4c7c38b0
Add code to handle the join lobby response 2022-03-13 18:31:58 -06:00
Oliver Akins
be3a1c97c9
Allow possibly not finding the game object in the DB 2022-03-13 18:31:44 -06:00
Oliver Akins
c5eb73ef4b
Add the game's status to the object 2022-03-13 18:31:25 -06:00
Oliver Akins
4c9d0b272c
Begin listening for lobby join events 2022-03-13 18:31:14 -06:00
Oliver Akins
88b07fdf1d
Implement a primitive join lobby method 2022-03-13 18:31:02 -06:00
Oliver Akins
5da30d572f
Add a Forbidden status 2022-03-13 18:30:46 -06:00
Oliver Akins
af37e3b5f5
Make the colour appear correctly even when it isn't our slot 2022-03-13 18:30:33 -06:00
Oliver Akins
4821f7a971
Indicate the user as the host when they create the lobby 2022-03-13 01:58:03 -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
ee40351d1b
Update option info modal to only display non-hidden options 2022-03-13 01:45:06 -06:00