I need a function that will calculate best move for the computer to get to the room desired. The parameters would be what room it needs to get to. It would run the same function for each number for the roll amount. For example, if the computer rolled a 5, it would run the function 5 times at the most. I could not upload all the files needed. Anyone interested in the project just let me know and I can upload the additional files.
A function that will calculate best move to get toward the room desired. Included is the project file with all files needed. The function is called computer square. It should return the space number and whether it is on the board or in the room. The rooms are labeled from 1 to 9. The comments are additional information. If there are any questions, please do not hesitate to ask.
Windows XP Home Edition