Help with Boggle Game?
Author |
Message |
mayaramamurthy
|
Posted: Sat May 19, 2012 7:30 pm Post subject: Help with Boggle Game? |
|
|
My game keeps getting caught at the part where it is supposed to check the coordinates
Description: |
|
Download |
Filename: |
boggle1.t |
Filesize: |
2.27 KB |
Downloaded: |
100 Time(s) |
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
Zren
|
Posted: Sun May 20, 2012 4:26 am Post subject: RE:Help with Boggle Game? |
|
|
Could you provide your data files (zip the project if possible). As I don't really want to decipher it's data structure.
Also, what do you mean by, "getting caught". Do you mean it gives an error? If it does, which ones? What does it say?
|
|
|
|
|
|
mayaramamurthy
|
Posted: Mon May 21, 2012 2:30 pm Post subject: Re: Help with Boggle Game? |
|
|
By getting caught I mean the program forever says it is executing without actually doing what it is meant to do
Description: |
|
Download |
Filename: |
Boggle.zip |
Filesize: |
1.11 KB |
Downloaded: |
87 Time(s) |
|
|
|
|
|
|
Amarylis
|
Posted: Mon May 21, 2012 5:51 pm Post subject: RE:Help with Boggle Game? |
|
|
I believe I've made a post on your other thread, but I'll just repost it here:
Turing: |
for e : 1 .. (lengthword - 1)
for f : 0 .. 4
for g : 0 .. 4
if table (f, g) = guess (e) then
row := f
col := g
elsif table (f, g) = guess (e + 1) then
row1 := f
col1 := g
end if
end for
end for
xcoord := row1 - row
ycoord := col1 - col |
xcoord and ycoord in this case would only be applicable to the last and second last letters of the word if both letters are in the table
Try recording the xcoord and ycoord of each individual letter, then checking a letter relative to the previous one.
|
|
|
|
|
|
|
|