So what I'm trying to do is call a function, that will run only 1 function out of 4 possible functions, so it randomly decides which one to do.
In this case those 4 functions that I'm trying to have randomly be chosen are moveUp() moveDown() moveRight() and moveLeft().
This is what I've got right now and its not really working out well. I haven't found anything to help.
func moveComputerPlayer() {
//This is where I have no idea what to do.
"randomly choose to run: moveRight(), moveLeft(), moveUp(), moveDown()
}
Thanks.