Week 8


This week we continued our Pyramid project by combining it with out window UI and asking a user to input the size(width&depth) into a field which would then build the pyramid, the larger the input the larger the pyramid.

this is the initial code we had when it first started working, it creates a function called pyramid with two arguments (height&size) height determines the location the cube is created and the size is a combination of width and depth, we ask the user for the size input and then put it into a variable called "text1"  which is the printed as an output string then converted into an integer to then be used in a loop which repeats by increasing height by one and decreasing size by one  creating a perfectly even pyramid.


this is the reduced code that simply asks for user input instead of adding it as an option on a larger window


Leave a comment

Log in with itch.io to leave a comment.