GithubHelp home page GithubHelp logo

taxi's People

Contributors

bigzaphod avatar dennismitchell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

taxi's Issues

Equal's Corner Left Turn Confusion

First, I super don't know how to use git so I apologize if this is the improper means by which to communicate this to you. I code for fun and I think Taxi is a hoot. I've even figured out a way to call functions but, dang, it's messy. Equal's Corner is giving me trouble, though, and I yearn to see Taxi perfected that one little bit more.

I use TIO to write Taxi code and have found a point of confusion when heading north from Equal's Corner and then turning left. I asked Dennis about it and he said that TIO uses the official interpreter and linked to this repository. Here's my original question to him:

I think there's an error in the Taxi map. At the very least, it doesn't seem to match the map posted on bigzaphod.github.io/Taxi . Specifically, TIO does not seem to include the first left turn when heading north from Equal's Corner. Here's a quick test program that errors out with "cannot drive in that direction":
https://tio.run/##lY6xDsIwDET3fsVtbJXK2BUhJhASX2CVKLUIcXEStXx9KI0YKjHAYlu@092LNHHODThgJI7sLSjiEkm7nt0Vp3Q3Kk7ss65@cx0EUb5q7YgGDlvossvt6urM3S0NIAwUgvHWKKy8O@ac/SOR2wTsRL3R/7yFZP0tDB9tnkdR0/oFJOcX
Contrast to this program which errors out with being fired for not returning to the garage:
https://tio.run/##lU4xDsIwENv7Cm9slcrYFSEmEBIvOJUoPRFy5ZKo5fWhNGKoxADL@WRbtiNNnHMDDhiJI3sLirhE0q5nd8Up3Y2KE/usq99cB0GUr1o7ooHDFrpg@V1dnbm7pQGEgUIw3hqFlXfHnLN/JHKbgJ2oN/qftyxZs2XDR5vvUdS0fiFzfgE

I realize you are not responsible for how TIO runs but I was hoping you could help as I think I have identified the cause of my confusion: the first left turn to the north of Equal's Corner (the continuation of the road for Starchild Numerology) does not count as a turn because there are no nodes in that direction. As such, it's as if the road doesn't exist insofar as the interpreter is concerned. However, it very much exists on the graphical map.

As far as I can tell, there are no other valid paths where you pass a dead-end, empty road and then later turn in the same direction as that empty road. Rounder's Pub has such a road on the left but you have to turn right for it to be a valid path. This may be the only instance where this is a problem.

Can you confirm that this is an issue? If it is, can you open that repo you haven't touched in 6 years (except for Dennis's pull request from TIO) and correct it? I imagine the easiest way would be to modify the graphical map to drop the dead road.

If you're still reading this, then I appreciate your time.

Feature Request: "Where to?"

The ability to "Switch to plan" based on the value contained in a passenger would simplify computed goto and gosub/return functionality thereby significantly reducing the size of programs by making code reuse easier.

Technically you can already do this by writing a branch handler, so it's not strictly necessary. I just thought it might add more "taxi flavour" to a reading of the code.

The fact that most passengers that request destinations will, instead, be dumped off the Riverview Bridge could also be seen as mildly humorous.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.