Can any one hit it???
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??
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
-
Kaustubh KatdareWell, I'm confused. What are the actions the user must take before the computer guesses the word?
-
PensuYap...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
biggie that's the play...think i was given 2 hours to hit it...how much you can...??The_Big_KWell, I'm confused. What are the actions the user must take before the computer guesses the word?
okk i will tell the hint...
allow computer to ask position of each letter and total no of letter..rest of work is yours
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...nicepeeyushYap...computer is not a god....U have to give some instruction or something like that.
I think you have read the rules carefully.
cummon ceans think ..i will raise the curtain after 2 days -
PensuWell...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
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....nicepeeyushWell...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.
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 -
sarveshguptaHey 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? -
PensuThat's what i was trying to say...i mean where is that part where computer is guessing the word in my mind......
-
Manish Goyalokk 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 Goyalhere 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 SreerambatlaThis is as good as giving the (row,column) number correct?
You are doing it in 2 steps !! -
Manish Goyalyeah 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 Sreerambatlagoyal420yeah 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
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....English-ScaredThis is as good as giving the (row,column) number correct?
You are doing it in 2 steps !!
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 -
PensuGood 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 Pallaviwhat ?? Computer will read your mind ah.!!
-
Sahithi Pallavigoyal420here 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 Goyalsahiti .
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
-
Manish Goyal
Thanks maro..for link...MaRoHangman..without the man.
Plenty of codes..
hangman source code - Google Search
You are reading an archived discussion.
Related Posts
This day is historic because an iconic legend debuted today and played many legendary innings in the game of cricket to become what we know him today as the Master...
hello ceans ...I want to buy a mobile between 4000 to 5000 of nokia..or whichever you preffered😕😕
please help me in choosing..
Hi everyone😛
myself neethu from india.
studying electronics and instrumentation engg,second year.
I think , I 've found the right place..😀
now im also
What is the mean by the "Simulation speed" in "Log Amplifier" ?
How to pay the landline phone bill through online?
Is it possible ?
What are the requirements to pay the bill through Online?
Regards
Lila