![]() ![]() Print("Out of range, please choose a number between 0-2.")Įxcept Exception as e: #handles general errors, prints description of type of errorĬolumn1 = row #all the same on top row GameMap = playerMove #add parameters to our function Print("This space is occupied by X, please try another one.") ![]() Currently I have it set up so that two players can play against each other but I want to add randrange to the 'X' player so that the player can play against the computer. I've tried moving the code within DrawMove() directly into the main code with no luck. ![]() I've cobbled together some code that does most of the work but I am still having trouble getting my computer player move to use the random number library and read them to the board. This is one of my first programs for an online Python course I am taking. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |