Computer Science Canada

Math in turing and competing against the computer

Author:  ssjwilliam [ Sat Nov 14, 2009 5:04 pm ]
Post subject:  Math in turing and competing against the computer

can anymore find out if they can put random math i mean like output random number times, plus, subtract or divide random numbers. The answer is then the input of the person reading the code and if the answer is correct, an object moves forward. Also can anyone find out if you put an object beside it, operated by the computer, is competing against the player so it is like 1v1 to the finish. Also can someone put a finish line at the end so when one object reaches the finish line, it says win or lose to the player depending if the player won or lost.

Author:  Euphoracle [ Sat Nov 14, 2009 5:13 pm ]
Post subject:  RE:Math in turing and competing against the computer

Yes, I can do it. In fact, anyone could do it. You could do it.

Author:  Insectoid [ Sat Nov 14, 2009 5:13 pm ]
Post subject:  RE:Math in turing and competing against the computer

Are you asking us for help or for us to do it for you?

Author:  ssjwilliam [ Sat Nov 14, 2009 7:41 pm ]
Post subject:  Re: Math in turing and competing against the computer

i'm asking for help plz and I got the math part to work, i just need the competing part and the object moving

Author:  Tony [ Sat Nov 14, 2009 8:21 pm ]
Post subject:  RE:Math in turing and competing against the computer

I don't understand your question. Could you explain what you have, what you are trying to achieve, and what you need help figuring out next?

Author:  ssjwilliam [ Sat Nov 14, 2009 9:10 pm ]
Post subject:  Re: RE:Math in turing and competing against the computer

Tony @ Sat Nov 14, 2009 8:21 pm wrote:
I don't understand your question. Could you explain what you have, what you are trying to achieve, and what you need help figuring out next?


I have the math equation for the game, i need help on how to put pictures in the games that can move when you get the right answer and how to put a computer that is competing against you to the finish line,

Author:  Tony [ Sat Nov 14, 2009 9:12 pm ]
Post subject:  RE:Math in turing and competing against the computer

use Pic.Draw to draw images. Whenever a player answers a question, increment the position variable, and redraw the picture.

Author:  ssjwilliam [ Sun Nov 15, 2009 10:40 am ]
Post subject:  Re: RE:Math in turing and competing against the computer

Tony @ Sat Nov 14, 2009 9:12 pm wrote:
use Pic.Draw to draw images. Whenever a player answers a question, increment the position variable, and redraw the picture.


but how can i get the car, that was the chosen by the player at the begining of the game and put it into this position.
for example/ there are three cars to choose from, the player types the car he wants, how do get that car and put it into this position.

Author:  Euphoracle [ Sun Nov 15, 2009 11:03 am ]
Post subject:  RE:Math in turing and competing against the computer

...Well if it was chosen by the player then you should know what car it is by that very fact... Putting it into the position is setting the position variables in code... :\

Author:  ssjwilliam [ Sun Nov 15, 2009 11:32 am ]
Post subject:  Re: RE:Math in turing and competing against the computer

Euphoracle @ Sun Nov 15, 2009 11:03 am wrote:
...Well if it was chosen by the player then you should know what car it is by that very fact... Putting it into the position is setting the position variables in code... :\


I got the pictures and math thing right, I just need help on putting a computer to play against you.

Author:  Tony [ Sun Nov 15, 2009 2:25 pm ]
Post subject:  RE:Math in turing and competing against the computer

In this type of game, you are not really playing against a computer, but against yourself and are trying to perform within a certain time limit.

The computer player will essentially just wait around for a pre-determined amount of time, and then write out an answer that it already knows, or can calculate near-instantly.

Author:  ssjwilliam [ Sun Nov 15, 2009 5:01 pm ]
Post subject:  Re: RE:Math in turing and competing against the computer

Tony @ Sun Nov 15, 2009 2:25 pm wrote:
In this type of game, you are not really playing against a computer, but against yourself and are trying to perform within a certain time limit.

The computer player will essentially just wait around for a pre-determined amount of time, and then write out an answer that it already knows, or can calculate near-instantly.


thanks now i just need help putting in the images that when the player chose the car and put it into this math equation.


: