Questions tagged [cs50-shuttle]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4
votes
1answer
94 views

Pickup removes the placemark but student is still considered within range

My PSET8 function for Pickup seems to work perfectly except that I can pickup the same student multiple times. The way I understood it, once the placemark is removed, PASSENGERS.placemark for that ...
0
votes
1answer
29 views

Where does the config object come from in shuttle.js?

shuttle.js starts with a function declaration, the function named to be shuttle accepts an object named config as an argument. I was wondering where does the config object come from to be passed into ...
0
votes
1answer
187 views

How to teleport the shuttle in pset8

As a extra feature I am trying to "Implement the ability to teleport the shuttle instantly to any building on campus, as by selecting that building’s name from a menu." I have my menu and am using ...
0
votes
1answer
58 views

Alert boxes pop up before window loads

I'm implementing the extra feature for pset8 where the user has only a limited amount of time to play the game before it ends. My aim is to load the window and Google Earth, popup an alert stating ...
1
vote
2answers
85 views

Cannot load the Shuttle index page in my browser

I followed each step carefully and my directory path is: jharvard@appliance (~/vhosts/localhost/public/pset8) ls -l gives me: drwx--x--x. 2 jharvard students 4096 Nov 8 2013 css drwx--x--x. 2 ...
1
vote
2answers
123 views

How can I compare the .js files to check if passengers are freshmen?

In pset 8, to check if a passenger is allowed to take the shuttle I must check if the passenger's house (https://shuttle.cs50.net/js/passengers.js) is in the HOUSES array (https://shuttle.cs50.net/js/...
0
votes
1answer
90 views

dropoff() stops when I assign a null value

For some reason, every time my code comes to this line of code, shuttle.seats[passenger]=null; it executed that line, but does not continue on. This is the line of code in context: for (passenger ...
0
votes
1answer
161 views

Implementing the default announcement when the shuttle moves

I have been struggling with the default announcement for a while now. I have been looking for the function that starts and stops the engine to implement the announcement but no such luck yet. I ...
4
votes
1answer
159 views

Drop off house not in HOUSES

I picked up a passenger and the house name for this passenger, "Wigglesworth Hall," doesn't exist in HOUSES, so my call to get the lat and long for that name fails when I loop through the passengers ...