MASTERMIND RESULTS for summative
Author |
Message |
leafs23
|
Posted: Tue May 19, 2009 6:33 pm Post subject: MASTERMIND RESULTS for summative |
|
|
What is it you are trying to achieve?
see problem
What is the problem you are having?
i am trying to converet from character to pixel graphics
Describe what you have tried to solve this problem
asked my teacher
Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
see attachment for all the code
[syntax="turing" if mousex > 250 and mousey < 55 and button = 1 then
check := 1
end if
if check = 1 then
% first col
if guessing (a, 1) = code (1) then
drawfilloval (a, y, 5, 5, brightred)
results (a, 1) := 2
end if
if guessing (a, 1) = code (2) then
results (a, 1) := 1
end if
if guessing (a, 1) = code (3) then
results (a, 1) := 1
end if
if guessing (a, 1) = code (4) then
results (a, 1) := 1
end if
% second col
if guessing (a, 2) = code (1) then
results (a, 2) := 1
end if
if guessing (a, 2) = code (2) then
results (a, 2) := 2
end if
if guessing (a, 2) = code (3) then
results (a, 2) := 1
end if
if guessing (a, 2) = code (4) then
results (a, 2) := 1
end if
% third col
if guessing (a, 3) = code (1) then
results (a, 3) := 1
end if
if guessing (a, 3) = code (2) then
results (a, 3) := 1
end if
if guessing (a, 3) = code (3) then
results (a, 3) := 2
end if
if guessing (a, 3) = code (4) then
results (a, 3) := 1
end if
% 4th col
if guessing (a, 4) = code (1) then
results (a, 4) := 1
end if
if guessing (a, 4) = code (2) then
results (a, 4) := 1
end if
if guessing (a, 4) = code (3) then
results (a, 4) := 1
end if
if guessing (a, 4) = code (4) then
results (a, 4) := 2
end if]
<Add your code here>
[/syntax]
Please specify what version of Turing you are using
<Answer> |
|
|
|
|
|
Sponsor Sponsor
|
|
|
leafs23
|
Posted: Tue May 19, 2009 6:36 pm Post subject: Re: MASTERMIND RESULTS for summative |
|
|
using 4.1.1 |
|
|
|
|
|
DemonWasp
|
Posted: Tue May 19, 2009 7:20 pm Post subject: RE:MASTERMIND RESULTS for summative |
|
|
I'd like to help, but I'm not quite sure what the problem you're experiencing is. Many of the members here don't have Turing available on all their computers, so we can't even run your code to see what you have, myself included.
Please state what you want your code to do more accurately, and what problem you're having ("I don't understand X", "It should do X, but it does Y", "I get this odd error, X", etc). |
|
|
|
|
|
leafs23
|
Posted: Tue May 19, 2009 7:33 pm Post subject: RE:MASTERMIND RESULTS for summative |
|
|
thanks |
|
|
|
|
|
|
|