Jan-02-2018, 10:44 PM
(This post was last modified: Jan-02-2018, 10:53 PM by ShadowWarrior17.)
When the user enters a column, the correct position is taken in the list.
The function that changes the string:
I have edited the function, and the 'gravity' now works. Thanks for the help works.
If an admin could delete this post, that would be appreciated!
The function that changes the string:
def insertChar(mystring, position, chartoinsert ): mystring=mystring[:position-1]+chartoinsert+mystring[position:] return mystringThe calling of that function:
dboard[columncheck(column)]=insertChar(dboard[columncheck(column)],(4*column)-1,counter)Counter is literally the counter(X or O)
I have edited the function, and the 'gravity' now works. Thanks for the help works.
If an admin could delete this post, that would be appreciated!