You should have some more details about why the build failed in the Output Log (Window → Developer Tools → Output Log), or your log file if you’ve since closed the editor (YourProject/Saved/Logs).
Could you post that here (or just attach your log), as that will help us know why your build is failing.
I found this: log.txtCompilerResultsLog:Error: Error D:/Unreal Projects/UbiShips/Source/UbiShips/ShipAIController.h(11) : Error: Superclass AIController of class ShipAIController not found
Open up UbiShips.Build.cs and check to see if it’s listed in either PublicDependencyModuleNames or PrivateDependencyModuleNames - if it isn’t, add it to one of them.