im a beginner at comp science, and my prof is using python, which is totally new tom me i had a few questions with the program im writing, im having a few problems.
i have to do a project where there are nine boxes filled with number 1-8, and 1 space is empty, the game needs to be scrambled, also all the moves need to be saved. the game can be paused anytime during thegame. the object is to move the numbers into the black spot till they are all in order.
the grid i have needs to contain variables so that can be moved by the players
this what i have and i know it is far off
board = [1,2,3,4,5,6,7,8,9]
for x in range(0, 9):
when i run that it looks like this
and this is how i need it to look:
what am i doing wrong? also how do i use the random.shuffle() function so i can scramble the numbers?
help would be greatly appriciated...
also how would i save every move, also the random fuction isnt working so i can scramble the numbers.