View previous topic :: View next topic |
Author |
Message |
| LaLa40
| Joined: 12 Dec 2009 | Posts: 6 | : | | Items |
|
Posted: Sat Dec 12, 2009 4:15 pm Post subject: Sudoku on Turing |
|
|
Hello fellow programmers,
I just wanted to know if anyone has programmed or knows how to program sudoku on Turing. I am a beginner turing programmer and if you have programmed sudoku on turing than please send me the file.
Thanks a lot |
|
Back to top |
|
|
| LaLa40
| Joined: 12 Dec 2009 | Posts: 6 | : | | Items |
|
Posted: Tue Dec 15, 2009 12:35 am Post subject: |
|
|
It's ok if no one has code for sudoku on Turing but as i was going through the forums someone made a sudoku game called Schmudoku on java that was originally made in Turing. So if it is possible to get the Turing code than please post it or upload the file.
If it isn't possible to get the turing code than any tips on making the sudoku game will help. So please post any tips or hints that you might think is helpful because I'm kind of beginner in turing but i know almost all of the commands. |
|
Back to top |
|
|
| wapati
| Joined: 12 Jun 2007 | Posts: 622 | : | Location: Canada | Items |
|
Posted: Tue Dec 15, 2009 9:53 am Post subject: |
|
|
Turing is a pascal-like language used at U of Toronto.
I doubt that it is used anywhere else and am surprised that even they might still use it.
Are you a student? |
|
Back to top |
|
|
| LaLa40
| Joined: 12 Dec 2009 | Posts: 6 | : | | Items |
|
Posted: Wed Dec 16, 2009 3:15 am Post subject: |
|
|
Actually yes i am a student and i chose to do sudoku as a final program at the end of this course.
Yes Turing is a very limited programming language but the way i'm making this game i want sudoku games to generate by themselves using randint and not to use pre-made sudoku templates inside the game. But if that is not possible than i can still use pre-made sudoku templates but I was very curious if there was a way to program a sudoku generator into Turing to use for my master program. |
|
Back to top |
|
|
| wapati
| Joined: 12 Jun 2007 | Posts: 622 | : | Location: Canada | Items |
|
Posted: Thu Dec 17, 2009 10:03 pm Post subject: |
|
|
LaLa40 wrote: | Actually yes i am a student and i chose to do sudoku as a final program at the end of this course.
Yes Turing is a very limited programming language but the way i'm making this game i want sudoku games to generate by themselves using randint and not to use pre-made sudoku templates inside the game. But if that is not possible than i can still use pre-made sudoku templates but I was very curious if there was a way to program a sudoku generator into Turing to use for my master program. |
Well of course there is but to earn your MA you should actually do the required work. |
|
Back to top |
|
|
| lkSudoku
| Joined: 16 May 2009 | Posts: 60 | : | | Items |
|
Posted: Fri Dec 18, 2009 9:13 am Post subject: |
|
|
LaLa40 wrote: | Actually yes i am a student and i chose to do sudoku as a final program at the end of this course. |
It is not ethical to gain academic credit for something you did no do |
|
Back to top |
|
|
| LaLa40
| Joined: 12 Dec 2009 | Posts: 6 | : | | Items |
|
Posted: Fri Dec 18, 2009 10:01 pm Post subject: |
|
|
I guess you guys are right. But the expectations are i use pre made sudoku templates in my program. I wanted to know if there was a way to automatically generate a random sudoku puzzle everytime the person runs a program. I just want tips no plagierism |
|
Back to top |
|
|
| m_b_metcalf
| Joined: 13 Mar 2006 | Posts: 210 | : | Location: Berlin | Items |
|
Posted: Sun Dec 20, 2009 4:33 pm Post subject: |
|
|
LaLa40 wrote: | I guess you guys are right. But the expectations are i use pre made sudoku templates in my program. I wanted to know if there was a way to automatically generate a random sudoku puzzle everytime the person runs a program. I just want tips no plagierism |
Step 1: design an algorithm to generate a valid sudoku puzzle, either bottom-up (adding to an empty grid) or top-down (removing values from a solution grid).
Step 2: implement the algorithm, using a pseudo-random number generator that always gives the same sequence of numbers.
Step 3: test and refine the resulting program until it works satisfactorily.
Step 4: modify the RNG to start each time with a different seed (based, for example, on the date and time).
Regards,
Mike Metcalf |
|
Back to top |
|
|
| LaLa40
| Joined: 12 Dec 2009 | Posts: 6 | : | | Items |
|
Posted: Sun Dec 27, 2009 12:24 am Post subject: |
|
|
Thank you m_b_metcalf for giving me a start on things, but im still a little off. Is it possible for you to just elaborate a bit further on what you said and give me some samples on what you are trying to say because i think what you are telling me is something i want to accomplish.
What does RNG stand for?
where can i find a pseudo random number generator?
thank you so much for that bit of start just push me a little more. |
|
Back to top |
|
|
| m_b_metcalf
| Joined: 13 Mar 2006 | Posts: 210 | : | Location: Berlin | Items |
|
Posted: Mon Dec 28, 2009 2:53 pm Post subject: |
|
|
LaLa40 wrote: | Thank you m_b_metcalf for giving me a start on things, but im still a little off. Is it possible for you to just elaborate a bit further on what you said and give me some samples on what you are trying to say because i think what you are telling me is something i want to accomplish.
|
Dear LaLa40,
I, and many others here, would certainly be happy to comment on any drafts that you produce, but since it's your degree (or is it? -- how old are you?), you should be doing some research and not expect to be spoon-fed. Quote: |
What does RNG stand for?
where can i find a pseudo random number generator?
|
Well, if you read what you've just written, the meaning of RNG might occur to to you. There are many RNGs available, but I know nothing about Turing (the language, as opposed to the man) and so you'll have to search, or translate from another language (warning: this is tricky stuff). On the other hand, the randint you've mentioned has a suggestive name!
Quote: |
thank you so much for that bit of start just push me a little more. |
Sorry not to be of more help. Please try harder yourself (look, too, on the Players' Forum), and try to persuade your supervisor to abandon Turing (the language, not the man).
Regards,
Mike Metcalf |
|
Back to top |
|
|
| Pat
| Joined: 06 Sep 2006 | Posts: 128 | : | | Items |
|
Posted: Thu Jan 14, 2010 2:28 pm Post subject: |
|
|
in a PM, LaLa40 (2009.Dec.27 00:32 GMT) wrote: | hey pat if you know of any sudoku code for turing can you please upload it to me |
what LaLa40 has done
is an abuse of the PM
has this happened to anyone else? |
|
Back to top |
|
|
| wapati
| Joined: 12 Jun 2007 | Posts: 622 | : | Location: Canada | Items |
|
Posted: Fri Jan 15, 2010 1:06 am Post subject: |
|
|
Pat wrote: | in a PM, LaLa40 (2009.Dec.27 00:32 GMT) wrote: | hey pat if you know of any sudoku code for turing can you please upload it to me |
what LaLa40 has done
is an abuse of the PM
has this happened to anyone else? |
Hardly on topic, as is my reply. Pat, not relevant to this thread. |
|
Back to top |
|
|
| Pat
| Joined: 06 Sep 2006 | Posts: 128 | : | | Items |
|
Posted: Fri Jan 15, 2010 6:59 am Post subject: re: abuse |
|
|
hi wapati,
are you suggesting i start a new Topic to discuss the (mis-)behaviour of LaLa40 ?
i have been inactive here since 2009.Jun,
yet this new member chose to send me his spam --
this suggests he probably spammed several of us
but we're so patient towards newcomers that nobody complained
well i'm complaining -- right here -- to get everyone aware of the spammer and to treat his questions accordingly |
|
Back to top |
|
|
| wapati
| Joined: 12 Jun 2007 | Posts: 622 | : | Location: Canada | Items |
|
Posted: Fri Jan 15, 2010 10:11 am Post subject: |
|
|
Hi Pat,
I may be unworthy of notice, I didn't get spammed. |
|
Back to top |
|
|
| wapati
| Joined: 12 Jun 2007 | Posts: 622 | : | Location: Canada | Items |
|
Posted: Sat Jan 16, 2010 8:26 am Post subject: Re: re: abuse |
|
|
Pat wrote: |
hi wapati,
are you suggesting i start a new Topic to discuss the (mis-)behaviour of LaLa40 ? |
Yes |
|
Back to top |
|
|
|