https://github.com/ryanhecht/hotdogstand
Project for High School Precalculus class from the Spring of 2015. The task was, given a map of a college campus with dorm locations and populations marked, to find the optimum location for a hot dog stand. I made a computer simulation of the campus, using LWJGL and Slick2D for TileMap and Pathfinding engines because I procrastinated, and only had about 6 hours to make this. map.txt provides the tile map, on which paths are denoted by "1" and empty space by "0." A set number of students are spawned at coordinates representing the locations of the dorms. Each student is given a destination of another dorm (or a random spot on the path, configured in the Student class), and the A* pathfinder takes them there. An array that acts as a heatmap tracks how many students passed each coordinate point. The point with the most traffic is crowned the optimum location. Look at campus.jpg and map.txt for visuals of the campus.
https://github.com/ryanhecht/hotdogstand
Last synced: 9 months ago
JSON representation
Project for High School Precalculus class from the Spring of 2015. The task was, given a map of a college campus with dorm locations and populations marked, to find the optimum location for a hot dog stand. I made a computer simulation of the campus, using LWJGL and Slick2D for TileMap and Pathfinding engines because I procrastinated, and only had about 6 hours to make this. map.txt provides the tile map, on which paths are denoted by "1" and empty space by "0." A set number of students are spawned at coordinates representing the locations of the dorms. Each student is given a destination of another dorm (or a random spot on the path, configured in the Student class), and the A* pathfinder takes them there. An array that acts as a heatmap tracks how many students passed each coordinate point. The point with the most traffic is crowned the optimum location. Look at campus.jpg and map.txt for visuals of the campus.
- Host: GitHub
- URL: https://github.com/ryanhecht/hotdogstand
- Owner: RyanHecht
- Created: 2015-09-27T02:23:56.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-27T02:34:06.000Z (over 10 years ago)
- Last Synced: 2025-04-03T15:17:41.598Z (about 1 year ago)
- Language: Java
- Size: 277 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Project for High School Precalculus class from the Spring of 2015. The task was, given a map of a college campus with dorm locations and populations marked, to find the optimum location for a hot dog stand. I made a computer simulation of the campus, using LWJGL and Slick2D for TileMap and Pathfinding engines because I procrastinated, and only had about 6 hours to make this. map.txt provides the tile map, on which paths are denoted by "1" and empty space by "0." A set number of students are spawned at coordinates representing the locations of the dorms. Each student is given a destination of another dorm (or a random spot on the path, configured in the Student class), and the A* pathfinder takes them there. An array that acts as a heatmap tracks how many students passed each coordinate point. The point with the most traffic is crowned the optimum location. Look at campus.jpg and map.txt for visuals of the campus.