Closed Fool-Yang closed 4 years ago
I'd recommend naming the file something more informative so that we can see what type of model it is without looking at the code.
I'm also hesitant with having the main.py
as a place where we test models as I think we should keep that for what we will consider to be our MVP. Here are my suggestions:
app
foldermodels
under the root directory where you will put things such as the TEMP.py
file. - This will be where we all put our own models we would like to testThoughts @Krocodial @Swapnil-dx @AhmedNSidd @Fool-Yang ?
Yup I think that's a good idea!
I'm also hesitant with having the
main.py
as a place where we test models as I think we should keep that for what we will consider to be our MVP. Here are my suggestions:
- Maybe make a copy of it and name is as your model within the
app
folder- create a folder called
models
under the root directory where you will put things such as theTEMP.py
file. - This will be where we all put our own models we would like to testThoughts @Krocodial @Swapnil-dx @AhmedNSidd @Fool-Yang ?
That's not easy to do with python. I have to import from a parent directory, which involves a thing called relative import and it gets tricky. I changed the file name and created a new file, so the main.py will be the original one. The best (easiest) solution is to have folders in the app folder, so we can import from there. I will do that for now, and if you really want to put the folders in the root dir then you should give it a try and see if you can get it working https://stackoverflow.com/questions/14132789/relative-imports-for-the-billionth-time/14132912#14132912
a bat script is added to the root dir along with the game engine. If you uses windows, then double click the .bat file will run my snake locally and open the browser.
two new folders added in the app folder. algorithms and models
TEMP.py renamed to preprocess and is now in the algorithms folder
it's snaking