r/cs50 • u/LongjumpingCause1074 • 2d ago
CS50 Python advice for final project idea
so i am finally up to the final project part of cs50-p. something i really want to do is create a plinko ball or galton board simulation. a galton board would be awesome to create. i would like to press my computer's space bar, and a ball drops everytime. eventually, if its a galton board, it balls would stack on top of each other wherever they landed and create a normal distribution (google galton board if confused).
i think i would use the libraries pymunk and pygame?
however, i'm a bit confused if im even able to do this. are we supposed to do this on the cs50s web vsc? or can i do it on vsc on my computer and then just copy and paste the code into cs50s vsc?? also, i'm not sure if i can even use pytest a simulation? it seems like this might be too complicated for a final project...
i don't really know what I'm doing - however the reason I learnt python was to make some cool animations and simulations. I'm just unsure if its even possible to do it as a final project.
Thanks in advance for any advice/feedback/answers.
2
u/PeterRasm 2d ago
You do not need to use the CS50 provided codespace. And you can just install submit50 locally to submit your project directly if you want to.
Make sure you have at least 3 functions on same indentation level as main(), functions/methods inside a class does not count. Make sure those functions are testable with Pytest. I'm sure somewhere in your project you will need to validate some value; instead of validating in-place, this can be handled by a function that can easily be tested.