There are billions of links in google with such code written in different ways. But it simply doesn't clear the screen when I tried it. What's wrong?
Can I make the program clear the screen every time and print new info so that there was no old useless info? I mean it prints the board, something changed, it clears the screen and prints the new version of board. How can I do that?
import os clear = lambda: os.system('cls') clear()