Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if the output file are valid #4

Open
AkselsLedins opened this issue Mar 6, 2018 · 0 comments
Open

Check if the output file are valid #4

AkselsLedins opened this issue Mar 6, 2018 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@AkselsLedins
Copy link
Owner

Expected Behavior

Throw an error like this:
selection_291

Current Behavior

The simulation runs smoothly

Possible Solution

Check simulation data before starting it.
Additionally, in:

func (v *Vehicle) Drive(allTrips []*Trip, step int, bonus int16) (score int) {
	// until the vehicle handles all scheduled rides
	if v.CurrentTrip >= len(v.Trips) {
		return
	}

	trip := allTrips[v.Trips[v.CurrentTrip]]
	trip.SomeoneIsOnIt()

We should check if someone is already on it

@AkselsLedins AkselsLedins added enhancement New feature or request good first issue Good for newcomers labels Mar 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant