Sudoku Programmers Forum Index

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log inLog in          Games  Calendar

Log in to check your private messagesLog in to check your private messages   

Sudoku on Turing
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Sudoku Programmers Forum Index -> Programming sudoku
View previous topic :: View next topic  
Author Message
LaLa40

Joined: 12 Dec 2009
Posts: 6
:

Items
PostPosted: Sat Dec 12, 2009 4:15 pm    Post subject: Sudoku on Turing Reply with quote

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
View user's profile Send private message
LaLa40

Joined: 12 Dec 2009
Posts: 6
:

Items
PostPosted: Tue Dec 15, 2009 12:35 am    Post subject: Reply with quote

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
View user's profile Send private message
wapati

Joined: 12 Jun 2007
Posts: 622
:
Location: Canada

Items
PostPosted: Tue Dec 15, 2009 9:53 am    Post subject: Reply with quote

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
View user's profile Send private message
LaLa40

Joined: 12 Dec 2009
Posts: 6
:

Items
PostPosted: Wed Dec 16, 2009 3:15 am    Post subject: Reply with quote

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
View user's profile Send private message
wapati

Joined: 12 Jun 2007
Posts: 622
:
Location: Canada

Items
PostPosted: Thu Dec 17, 2009 10:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
lkSudoku

Joined: 16 May 2009
Posts: 60
:

Items
PostPosted: Fri Dec 18, 2009 9:13 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
LaLa40

Joined: 12 Dec 2009
Posts: 6
:

Items
PostPosted: Fri Dec 18, 2009 10:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
m_b_metcalf

Joined: 13 Mar 2006
Posts: 210
:
Location: Berlin

Items
PostPosted: Sun Dec 20, 2009 4:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
LaLa40

Joined: 12 Dec 2009
Posts: 6
:

Items
PostPosted: Sun Dec 27, 2009 12:24 am    Post subject: Reply with quote

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
View user's profile Send private message
m_b_metcalf

Joined: 13 Mar 2006
Posts: 210
:
Location: Berlin

Items
PostPosted: Mon Dec 28, 2009 2:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
Pat

Joined: 06 Sep 2006
Posts: 128
:

Items
PostPosted: Thu Jan 14, 2010 2:28 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
wapati

Joined: 12 Jun 2007
Posts: 622
:
Location: Canada

Items
PostPosted: Fri Jan 15, 2010 1:06 am    Post subject: Reply with quote

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
View user's profile Send private message
Pat

Joined: 06 Sep 2006
Posts: 128
:

Items
PostPosted: Fri Jan 15, 2010 6:59 am    Post subject: re: abuse Reply with quote


    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
View user's profile Send private message Visit poster's website
wapati

Joined: 12 Jun 2007
Posts: 622
:
Location: Canada

Items
PostPosted: Fri Jan 15, 2010 10:11 am    Post subject: Reply with quote

Hi Pat,

I may be unworthy of notice, I didn't get spammed.
Back to top
View user's profile Send private message
wapati

Joined: 12 Jun 2007
Posts: 622
:
Location: Canada

Items
PostPosted: Sat Jan 16, 2010 8:26 am    Post subject: Re: re: abuse Reply with quote

Pat wrote:

hi wapati,

are you suggesting i start a new Topic to discuss the (mis-)behaviour of LaLa40 ?


Yes
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Sudoku Programmers Forum Index -> Programming sudoku All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Sudoku Programmers topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group

Igloo Theme Version 1.0 :: Created By: Andrew Charron