Commit graph

12 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
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
7af5cf0ce8
Fix bug with the countShips function 2022-06-19 12:42:24 -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
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