Murder Case 2 [Game] | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 11

Murder Case 2 [Game]

Let's solve the next murder case! It's free to run! ;) https://code.sololearn.com/WFV87D6RV2Rr/?ref=app

20th Jul 2017, 3:52 PM
Yasir Khan
Yasir Khan - avatar
9 Answers
+ 18
Solved it! Good One! Suggestion : Make an array of names. Choose names of characters (boss, waiter etc,.) in random from that array everytime. Then, if anyone posts "xxx is the murderer" in comments, it wouldn't be valid for others.
20th Jul 2017, 4:03 PM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 14
Solved here too! ^^ Game is fun but now focus yourself on the optimization, code must be improved, you can use a function rather than repeat the code multiple times, just to make an example: function hide() { el.style.display = "none"; } ... and call it like this: hide(document.getElementById("el")); ... and so on, keep it up! ^^
20th Jul 2017, 4:21 PM
Maz
Maz - avatar
+ 7
nice story 😁 . ( Mr.fox➡👺). bring the third case 😊 will be waiting for it 😎
20th Jul 2017, 4:26 PM
Lord Krishna
Lord Krishna - avatar
+ 3
Good one! Eagerly awaiting my next case assignment! 👮👮👮 The suggestion I wanted to make, Krishna already made it. Look forward to more challenging codes from you! 👍👍👍
21st Jul 2017, 7:37 AM
Leigh E. O.
Leigh E. O. - avatar
+ 2
Thanks!!! I am inexperienced. Just a month into HTML. I can improve with guidance of experienced people like you.
20th Jul 2017, 4:28 PM
Yasir Khan
Yasir Khan - avatar
+ 2
Thank you Maz for such a good advice. Now my code looks a lot cleaner than before.
21st Jul 2017, 5:30 AM
Yasir Khan
Yasir Khan - avatar
+ 1
Well done!
20th Jul 2017, 6:09 PM
Jim Tully
Jim Tully - avatar
+ 1
I didn't play it through multiple times, just the one (I solved the case ;) ) . However, I did have a suggestion on game play. I think it would be cool if options were only available if you found out certain pieces of information first. Like, you couldn't talk to Mr. Fox if you hadn't first read the appointment book. And at the same time you might not be able to do both actions, like go to his house and talk to the girl friend. One eliminates the other option. That sort of thing. It can make things more twisty in the code, but gives it more of a detective feel.
20th Jul 2017, 6:31 PM
Jim Tully
Jim Tully - avatar
0
@Jim Tully: I am working on 3rd case. I loved your suggestion. I am working according to your suggestion. @Krishna Teja Yeluripati: I have tried your idea in third Game. I request you to check it out when it's made public.
23rd Jul 2017, 2:12 PM
Yasir Khan
Yasir Khan - avatar