chrisviral / comp-345 Goto Github PK
View Code? Open in Web Editor NEWCOMP 345 Fall '17 project
License: GNU General Public License v3.0
COMP 345 Fall '17 project
License: GNU General Public License v3.0
We might have to double check with the prof to see if we are allowed to use a hash map instead of a graph. I feel like it might be a requirement in the project to add some complexity to it.
Inserting the size of of a vector, and then pushing to the back, doubles the vector size, because it just pushes at the end.
I fixed this before the demo. We just have to remember to fix for A3
You have to be careful here. You have to figure out which object should own that pointer. Since you are passing the pointer from a parent object, either that parent object should delete the map or the Game object, but not both. Lets say the main driver creates the map, but then pass the pointer to the game object, should the main driver delete the map, or the game object?
Usually the initial creator of the object should own and delete it. The way you did it works, but it is something to think about. A good rule of thumb is that when other objects use another pointer owned by an object, you should pass const pointers, so that the non owner of that pointer cant modify the the pointer address, though they can still modify the object that the pointer is passing to.
Tldr; Figure out which object should delete the map. And only delete once.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.