Can any one hit it???

Manish Goyal

Manish Goyal

@manish-r2Hoep Oct 21, 2024
hello Ceans..I would like to share a problem that i face in a competition
you have to develop a game named ....assume a word...
you have to assume a word in your mind..
and then write a code so that computer can read your mind..confused...??
I mean that without telling word in your mind to computer..you have to write code so that computer can guess..it ??
You have time of 2 days only...then i will tell you the code??

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Kaustubh Katdare

    Kaustubh Katdare

    @thebigk Nov 15, 2009

    Well, I'm confused. What are the actions the user must take before the computer guesses the word?
  • Pensu

    Pensu

    @pensu-8tNeGU Nov 15, 2009

    Yap...computer is not a god....U have to give some instruction or something like that.
    I think you have read the rules carefully.
  • Manish Goyal

    Manish Goyal

    @manish-r2Hoep Nov 15, 2009

    The_Big_K
    Well, I'm confused. What are the actions the user must take before the computer guesses the word?
    biggie that's the play...think i was given 2 hours to hit it...how much you can...??
    okk i will tell the hint...
    allow computer to ask position of each letter and total no of letter..rest of work is yours
    nicepeeyush
    Yap...computer is not a god....U have to give some instruction or something like that.
    I think you have read the rules carefully.
    I know computer is not a God..but human mind can do anything....think there is logic behind it..i have already give you the hint...
    cummon ceans think ..i will raise the curtain after 2 days
  • Pensu

    Pensu

    @pensu-8tNeGU Nov 15, 2009

    Well...if i am right then first u input the number of letters in the word,then u ask the user position of each letter.....if it the answer then i think it can be done.
  • Manish Goyal

    Manish Goyal

    @manish-r2Hoep Nov 15, 2009

    nicepeeyush
    Well...if i am right then first u input the number of letters in the word,then u ask the user position of each letter.....if it the answer then i think it can be done.
    sorry if my hint leads you to the wrong way ...by position i mean something else...don't treat it as position in english alphabet series....
    you are given a matrix only like this
    a b c d e
    f g h i j
    k l m n o
    p q r s t
    u v w x y
    z
    then you will asked using this to guess the word and find the answer
    don't treat it as for z =26,y=25
  • sarveshgupta

    sarveshgupta

    @sarveshgupta-txtmu5 Nov 15, 2009

    Hey but don't you think it is somewhat misleading although it is good to think like this

    but when you are telling the position of the letter, say the word in the mind is 'crazy'

    now computer asks number of letters and we tell it 5

    now it will go on to move from a-z and if any letter occurs in our word say 'a' in this case we say position is 3

    similarly for all other letters till all letters are complete in which case it will display the final word 'crazy'

    but then if i have understood it correct it is like time consuming and obvious way of telling the word not by telling it directly to the computer but by moving it step by step to know the word which we have only told it is not that the computer has guessed it.

    Don't you think so?
  • Pensu

    Pensu

    @pensu-8tNeGU Nov 15, 2009

    That's what i was trying to say...i mean where is that part where computer is guessing the word in my mind......
  • Manish Goyal

    Manish Goyal

    @manish-r2Hoep Nov 15, 2009

    okk guys i will tell you a strong hint..hope it will lead you to right answer
    by position i mean column no in matrix which i considered
  • Manish Goyal

    Manish Goyal

    @manish-r2Hoep Nov 18, 2009

    here is the logic of program
    first of all assume a word ..say mani
    now computer will ask how many letter in your word ie 4
    now there will be a matrix given..
    a b c d e
    f g h i j
    k l m n o
    p q r s t
    u v w x y
    z
    now computer will ask column no of first letter ..ie 3

    simlarly 2,3 4 letter column no ie 1,4,4
    now computer will generate a new matrix..
    c h m r
    a f k p u z
    d i n s x
    d i n s x
    now computer will again ask column no each letter
    ie 3
    1
    3
    2
    the answer will position of first letter 3 row 3 cloumn in first matrix ie 3
    and for 'a' 1 row ,1 column ie a
    and for 'n' 3 row ,4 column
    and for 'i' 2 row,4 column
    I hope you got it
  • Saandeep Sreerambatla

    Saandeep Sreerambatla

    @saandeep-sreerambatla-hWHU1M Nov 18, 2009

    This is as good as giving the (row,column) number correct?

    You are doing it in 2 steps !!
  • Manish Goyal

    Manish Goyal

    @manish-r2Hoep Nov 18, 2009

    yeah this is the way of making fool of user...as user can't guess what the computer is trying to do..
    am i right??
  • Saandeep Sreerambatla

    Saandeep Sreerambatla

    @saandeep-sreerambatla-hWHU1M Nov 18, 2009

    goyal420
    yeah this is the way of making fool of user...as user can't guess what the computer is trying to do..
    am i right??

    I didnt get what are you trying to say.

    Why cant we guess ??

    Thats just changing the rows as columns !!
  • Manish Goyal

    Manish Goyal

    @manish-r2Hoep Nov 18, 2009

    English-Scared
    This is as good as giving the (row,column) number correct?

    You are doing it in 2 steps !!
    ES ..I Was asked to device a game like this...ie to assume a word...and computer and would read your mind...ie it will tell the word in your mind....
    and for that i made this logic..it is quite simple.....
    and if anyone has some better logic ..
    then please tell....it will help me .....

    thanks
  • Pensu

    Pensu

    @pensu-8tNeGU Nov 18, 2009

    Good one buddy.....u just made a fool of user.......if its till a game only then its fine.But as far as u were talking about guessing the word i thought something serious.
  • Sahithi Pallavi

    Sahithi Pallavi

    @sahithi-oJZaYj Nov 18, 2009

    what ?? Computer will read your mind ah.!!
  • Sahithi Pallavi

    Sahithi Pallavi

    @sahithi-oJZaYj Nov 18, 2009

    goyal420
    here is the logic of program
    first of all assume a word ..say mani
    now computer will ask how many letter in your word ie 4
    now there will be a matrix given..
    a b c d e
    f g h i j
    k l m n o
    p q r s t
    u v w x y
    z
    now computer will ask column no of first letter ..ie 3

    simlarly 2,3 4 letter column no ie 1,4,4
    now computer will generate a new matrix..
    c h m r
    a f k p u z
    d i n s x
    d i n s x
    now computer will again ask column no each letter
    ie 3
    1
    3
    2
    the answer will position of first letter 3 row 3 cloumn in first matrix ie 3
    and for 'a' 1 row ,1 column ie a
    and for 'n' 3 row ,4 column
    and for 'i' 2 row,4 column
    I hope you got it

    How it will generates the second matix? Is it a random matrix or a common matrix for all the words ?

    After generating second matrix, again it will ask you the column numbers.!!

    I didnt get after that!!

    goyal - Can you explain me please..!!
  • Manish Goyal

    Manish Goyal

    @manish-r2Hoep Nov 19, 2009

    sahiti .
    when you gave column no 1st times..then you will get column no of each letter It generates the another matrix by arranging each column in row wise manner
    In my example the position of 1st letter ie m is 3 so it will arrange it in row wise manner
    c h m r
    .....
    and hence in this manner you will get whole matrix
    and when you again ask column no of each letter
    it will give you row no of each letter
  • MaRo

    MaRo

    @maro-Ce3knx Nov 19, 2009

    Hangman..without the man.

    Plenty of codes..
    <a href="https://www.google.com/search?hl=en&safe=off&client=opera&rls=en&hs=XhX&q=hangman+source+code&btnG=Search&aq=f&oq=&aqi=g3g-m1" target="_blank" rel="nofollow noopener noreferrer">hangman source code - Google Search</a>
  • Manish Goyal

    Manish Goyal

    @manish-r2Hoep Nov 20, 2009

    MaRo
    Hangman..without the man.

    Plenty of codes..
    <a href="https://www.google.com/search?hl=en&safe=off&client=opera&rls=en&hs=XhX&q=hangman+source+code&btnG=Search&aq=f&oq=&aqi=g3g-m1" target="_blank" rel="nofollow noopener noreferrer">hangman source code - Google Search</a>
    Thanks maro..for link...