Dhawal's Blog -8- My Dilemma with reviewing books.

I was looking to talk about this with one of my friends and had called up a few but I realised many were busy in their own lives ( for which I have no hard feelings and I appreciate the honesty. ) and weren't reading the reviews I had posted.

One of my friends J.T, who does read each and every review or article I post told me that my reviews are being boring and monotonous from past few weeks. At that time I had excused out myself by saying, ' I have to watch out for not giving spoilers' but later I realised what was wrong and where were the things going wrong.

Reading books was something I loved to do. Talking about the nice reads I had or things I had to discuss from my new reads is something I used to do naturally. Hence, I thought why not help authors as well as try building it as an editorial-critique business. I have been judging contests and it my reading experience made it much easier and quicker for me to read and critique upon stories, articles, plot ideas and what not. I thought why limit this wonderful thing with just friends and not spread it around. Hence from there I got the idea of reviewing and talking about books.

Writing a review is very hard when you compare it with a situation when you are talking to your friend or a person who asked you for a critique and when you are just throwing your unwanted opinions in the air. It makes a lot of difference which I realised as I completed a year as a professional reviewer.

Reviewing books comes out as a very different approach when you are doing it in open market. While here you have to keep in mind that you don't bash the book, don't make enemies with the publisher as well as the author as that will affect you getting review copies and at times some authors ask you not to rate books below a certain star limits even if it is a total crap. Yes, I mean it, crap. Now, I know some moral policing officers will say that don't break author's heart and blah blah. But the fact is that when you are bringing out your work in public you can't be someone telling people to say only good about your work and praise it.

Then comes the topic of getting review copies in exchange of providing reviews on a number of places. One person who calls himself my friend asked me if I read so many books or they are fake reviews? I just answered why don't you read the reviews I write and find out yourself? Even though you are putting a tagline that you are writing an honest review, mentally somewhere you have to take care that you don't literally drive people away from buying the book because reviews are meant to drive people to read books and not to drive them away.

I am one of those who can't resist being honest and that being one of the reasons people do read and appreciate books I used to recommend. But as I started reviewing things began to change. I had to cut out all negatives and speak only of positives, hence my reviews got boring. Spoilers were just my excuse to get out of it without feeling guilty about hiding the truth and not being totally honest.

I realised this fact when I got to read 4 books back to back while I totally loved and then a book which wasn't bad but and was okayish but I literally rewrote the post 5 times to avoid appearing bashing in that review ( My last 5 reviews). That was the moment I realised that reviewing for fun and things you like is different than reviewing as a pro reader.

I might be good as a beta reader to help before the thing gets published but I think I am not the one who can possibly take a review copy and hide the half truth from ones who actually trust my recommendations. I am in a dilemma whether I should continue to write reviews or just stop altogether.

That's when my Author friend Durriya Kapasi and say one of member from my 'council of advisors' (pun intended) told me to select the books carefully that I take up for reviewing. Honestly, I had literally bashed her book when I had caught upon the lamest plot holes in her story and we both laughed together on it. She has taken on my harshest of criticisms and I am happy that the second book was a lovely one when she improved on those plot holes. She told me, I just should choose a book which I would possibly like and there are less chances of me having to write a half truth review.

I thought on this thing for a week and now I am writing this. I don't know who will read this and who won't but I just wanted this out of my system. I think reviewing books will go on backside for now. I will review books but from My Personal Collection. I might take one or two review copies here and there if I find some good ones but I think I don't want my website to be all about reviews. I started this to focus on my writing and not talking about other's writing and trying to find faults in them.

I am ranting this out here because I feel you as a reader who is reading this is more of my friend and connects with me more than anyone else out there. You are the one who has been commenting and constantly guiding me. I will just finish with the copies I have lined up and then probably stop taking review copies altogether. I feel bad when someone is just sending me a book and I am not being able to critique on it with my fullest of knowledge.

Forward from this, I would be focusing more on writing my own books than commenting on others. I'd post reviews for the books which I will buy or I have bought and might be exception for a few good books I might encounter in future but being a pro-reviewer  ends here.

Apart from that I have added a few tags like 'recommended reads','from my personal collection','sponsored' so you can see which ones are review copies, books I recommend and books I personally own. You can click on those tags to search books with that tag. I felt like I had to come clean and I did. Less than 15% of my posts are sponsored and average I got is 30 Rs per post.So you can do the math for all this hassle. My domain name charges me more than whatever I got from reviewing. Happy now, Mr doubting my reviews. ( I wish I could take his name and tag is profiles here but he is a fellow digital marketer and I don't wanna throw dirt on him. Taking an eye for an eye gets the world blind.)

Disclaimer : I have poured my heart out about the dilemma that I was facing from a long time. Judge me all you want. But I can't feel good being a freeloader commenting on things when I had no part in its creating or consuming process. It's just me.




Do comment and share your thoughts about it! I'd love to know what do you think. Also, I'd keep updating it quite often so do follow the Website to get all the updates by clicking here.

Also, a minor headsup.... Obsessed is free to read on Kindle Unlimited! Do check it out. I'd be glad to read your reviews!
Share :

Review: The Whispering Dwapara : The Rise of Maharathis



The Whispering Dwapara : The Rise of Maharathis by Rishi .
My rating: 3 of 5 stars



Book Description : 
Kings and Scientists, Gurus and Professors, Maharathi Warriors and Indian Army Veterans. All will fight against the rising dark powers of Pataal Loka: The Asuras.

Kingdom of Vedgarh, an ancient home of purebred Aryans nestled amidst the Himalayas and hidden from the modern societies, is the sole preserver of sacred Vedic knowledge and celestial powers. Sitting on the verge of yet another great war with Asuras, the kingdom is eagerly waiting for a Maharathi warrior to lead its forces. With intensifying Kaliyuga, Asuras’ dark powers are rising with every passing day.

As a fallback step, the kingdom opens its gates for modern Science and weapons. A grand research project begins to harmonize ancient Vedic miracles with modern scientific principles. But the budding internal politics is eating up the kingdom like parasites. Will it impact the research project as well? What will happen if an internal conflict arises between Modern Science and Ancient Vedic science? Will Asuras win and destroy the universe’s last hope of defeating the Kaliyuga forever?


Book one of The Forbidden Rhymes series begins the saga of the greatest war of Daivi Astras in the history of mankind.

Disclaimer: This one can be a hit or a miss for you. I read other reviews on Amazon and Goodreads both and was skeptical about posting my review. But then I decided that you are not supposed to like every other book. So here is what I thought while reading. I am going to give spoilers here since I really want to give a critic where things bugged me and where it could've been better. Do not consider this as bashing the book. This is the very first time I am writing a honest review instead of rejecting it.

The cover is quite intriguing and the concept of the story is itself interesting. As you know I love reading mytho-fiction as especially when it is mixed with the science fiction. But I feel most authors aren't upto the mark that Amish's Shiva Trilogy has left in my head.

I liked the concept of the story here. Imagining that somewhere around there's a place where people are still living like they used to in Dwapar Yug. The Daivi Astras and the other vedic secrets kept intact as they had been before the Kali Yug  began. It is quite fascinating to imagine but the fun ends here.

I like that the concept of plot is quite unique but everything which gives it a wow effect ends here. The story felt like a modern fusion version of Mahabharat written as a fanfiction. Not just because the characters had the same names and there was discussion on who will ascend the throne after the blind king. But it felt all like weird mix to me. It wasn't fitting inside my brain.

Another confusion, I had was establishing the timeline of the story. Is it past? Is it future? or is it in some parallel earth universe? Just taking a possibility into account as it as sci-fi as theme as well. I still don't know.

Considering the positives, the characters of chitra, parth, pawan, aniruddh felt a bit realistic while the rest felt like modified mahabharat characters. One thing that I liked was how the vedic science was related with the modern science in many aspects when the parth and his friends attend lectures in gurukul. I felt there was the point when the book went off track from telling a story about the secret kingdom of Vedgarh and its concepts to explaining how much vedic science was advanced even after being ancient than to our modern science.

I felt that the idea was nice, choice of words was nice but the narration needs work and a lot of work. The 3 stars are totally for a good and unique concept but the idea needs a better execution.

Link : https://amzn.to/2YRs9MJ




Do comment and share your thoughts about it! I'd love to know what do you think. Also, I'd keep updating it quite often so do follow the Website to get all the updates by clicking here.

Also, a minor headsup.... Obsessed is free to read on Kindle Unlimited! Do check it out. I'd be glad to read your reviews!
Share :

Review: Ashok and the Nine Unknown



Ashok and the Nine Unknown by Anshul Dupare
My rating: 5 of 5 stars


Book Description : 

You know what, the best revenge will be watching you failing to achieve your dreams. Do what you can, Ashok. The game has just begun!
Ashok wandered amidst the corpses, helplessly, looking like a dead man walking among the dead. The wailing of people who had lost their loved ones on the battlefield cut into his soul and it was then that he heard a cry for help. 
As realization of the devastation of war seeped in, Ashok decided to dedicate his life towards the betterment of society and try his best to prevent any destruction of life. Realizing he could not do so single-handedly, Ashok created a secret society comprising nine chosen members, who were known as the ‘Nine Unknown’, to help preserve knowledge that, in the wrong hands, could be used to destroy humanity.
Little did Ashok know that the safekeeping of such knowledge had a high price to it; that shadows walk amidst us and that sometimes our actions unspool unimaginable consequences.
The first of two volumes, this book has the power to transform your idea of reality!




It's been a long time I got a book which has so much of depth and so much content inside it. I thought it'd be a quick read looking at the size of the book and then I opened it and started reading. It took me seven hours literally to finish this book. Never before I have spent that much time on a single book of 300 pages.

There's so much content to begin with and I just want to talk about it all but since my USP is non-spoiler reviews, I'd keep it under the cover. The story begins with the Ashok in Kalinga War, its mostly post war scenarios and then slowly the clouds of mystery start covering it.

Slowly as you keep reading the author keeps throwing a ton of facts and myths bundled at you and then takes you on a mytho-fiction journey. At first I was like, 'huh, interesting.' then later it got quite monotonous till the middle of the book. I thought this is the point where this book will lose interest.

I have this theory that each book as a few points like most interesting point, point where reader just gets disappointed, a point where the focus gets away from main story and reader loses interest, etc... But this book had my interest till the end. When I thought the book had reached its peak, I was totally wrong. Then the story took a fantasy turn. I so want to reveal but I won't spoil the story for you, just check it out for yourself. The fantasy part albeit looks weird for once but the way everything is interconnected and damn the climax. Climax is I feel the most interesting point in this book according to me. I can't speak about the rest although.

One thing for sure, I am eager to read the next part of this duology whenever it comes out. As usual I was so focused inside the story I forgot to notice minor errors although there might have been one or two but I never noticed. The narration was so smooth and engulfing that I felt I was there watching all these characters over like some three eyed raven :P.

I would surely recommend this book to all mystery, fantasy, mytho-fiction , historical fiction lovers. I know the cover makes it look like some religious text, but there's so much about the book I actually forgot to talk about cover which also is quite interesting in its own way.

Link : https://amzn.to/2HzIPlW




Do comment and share your thoughts about it! I'd love to know what do you think. Also, I'd keep updating it quite often so do follow the Website to get all the updates by clicking here.

Also, a minor headsup.... Obsessed is free to read on Kindle Unlimited! Do check it out. I'd be glad to read your reviews!
Share :

Review: The Red Line



The Red Line by Tanmay Dubey
My rating: 5 of 5 stars



Book Description : 
Inspired by true events, THE RED LINE is a thrilling murder mystery that treads the dark by lanes of international espionage and corrupt defense deals. The exciting story witnesses the journey of an honest cop to discover his true dharma and a brave women army officer’s selfless service for her country.


This book has a lot to be talked about, beginning with the cover, I loved the smart design and in hand it really looks good. More than a book cover it looks more like a movie poster to me. The book trailer had already grabbed my interested and I was waiting to get it in my hand.

For the first I know this is going to be super hard to talk about this book without giving out any spoilers but I'll give my best shot. The book takes you deep into the International Espionage world closely binding it with the real life events. I had one such book before but it didn't blend the things very well and had a very triggering religious bias. But this one, I must say, is absolutely well written.

The narration pace is quite adequate, neither too slow or too fast. The book although admittedly gets a bit monotonous as you reach the midst of the book but later there are a lot of roller-coaster thrilling moments which will make you thank the book gods that you didn't quit it in middle.

I loved the details that were covered in this book. It look so serene and real that I felt did this really happen? I can certainly expect it coming as a movie or web series adaptation very soon and if it does I'd be happy to watch it.

It is very long read. Surprisingly, I was so engrossed in it that I finished in 3 hours straight in one sitting. For a fast paced reader like me it is quite a feat to stick at one place for 3 hours to read one book. Coming to the story, there are some really good moments and you can imagine things happening in front of you as everything feels so real.

I would surely recommend to check this book out if you are a fan of such stories.

Link : https://amzn.to/2X4SPJq



Do comment and share your thoughts about it! I'd love to know what do you think. Also, I'd keep updating it quite often so do follow the Website to get all the updates by clicking here.

Also, a minor headsup.... Obsessed is free to read on Kindle Unlimited! Do check it out. I'd be glad to read your reviews!
Share :

Review: Fluid: The Approach Applied by Geniuses Over Centuries



Fluid: The Approach Applied by Geniuses Over Centuries by Ashish Jaiswal
My rating: 5 of 5 stars


Book Description : 
Whether we are in a classroom or in the outside world, we are always forced to choose who we are. Always expected to walk towards a fixed goal. Never be uncertain, never fail or never alter our course. We are either artists or scientists or businessmen. We are being constantly reminded to embrace these identities with greater force. As they say, the more we remain folded in our fields, the better specialists we are.
Fluid shatters this myth by arguing that great minds who have changed the fate of humankind are actually the ones who failed, faltered or remained uncertain, yet never bothered to stay pasted to a rigid line. They were more. They were fluid.
In captivating storytelling narrative, Ashish Jaiswal takes us through groundbreaking research unravelling what binds the likes of Leonardo da Vinci, CV Raman, Steve Jobs, Charles Darwin and other geniuses and why being fluid like them could be our biggest winning strategy in the age of artificial intelligence.
Read to learn the approach required for world-class innovations, groundbreaking solutions and game-changing ideas.


This is one of those unique books which are just difficult to segregate into one category. This book also just preaches against too much specialisation so I would just leave this one as non-fiction here.

Well I want to talk a lot about the book and the content inside but if I do it here then I'd doubt many of you would actually bother to check out the book. So consider this as a spoiler free review for a nonfiction. This book is more towards the learning and information section unlike other books which mostly dive towards the self help section like most other non-fictions these days.

I was annoyed with the amazon and the sellers which had the copies of this book for sale as I had this book almost on my 3rd order. But those are issues of amazon and I won't let affect this review. I wish there was a look on the editing as many typos and eaten up words had been itching my eyes but it wasn't a gargantuan task to decipher what the word it was because of the context.

Anyway, coming to the content which is again the king of this book here even though the cover is very simple and  attractive. I felt this was more of a psychology thesis than your everyday nonfiction that you'd read. The format at least made me think that way, all those references, overly formatted indexes and other such perfections.

This book is for the one who are curious and open to learn new things. In the book's terminology it is for the one who are fluid or wish to be fluid. I really enjoyed reading the fluid theory and this book is something you can actually recommend to parent's as well.

Link : https://amzn.to/2HFf02i



Do comment and share your thoughts about it! I'd love to know what do you think. Also, I'd keep updating it quite often so do follow the Website to get all the updates by clicking here.

Also, a minor headsup.... Obsessed is free to read on Kindle Unlimited! Do check it out. I'd be glad to read your reviews!
Share :

Download Waves In The Sky by Rakhi Jayashankar for Free




Book Description : 
Time maneuvered their lives through unforeseen circumstances. The canaries- Charu, Ananya, Neha, Avantika,Raihana and Yami- the heart and soul of Naivedya, run by Ms.Malini. They played together, studied together, stayed together, under the shades of their mother banyan, till they fell apart. Little did they know that they would be centrifuged by the Waves in the Sky. Hanging on to their mother banyan, they held their wings together and fought the storm.
A mind boggling tale of six headstrong girls, thirty years of their life, their mother banyan-Ms.Malini and a mystery.
A thrilling mysterious contemporary fiction.


The book is available to download for free till 22nd May 2019. Kindly, check in your respective websites before downloading.

Link : https://amzn.to/2VENdUu



Do comment and share your thoughts about it! I'd love to know what do you think. Also, I'd keep updating it quite often so do follow the Website to get all the updates by clicking here.

Also, a minor headsup.... Obsessed is free to read on Kindle Unlimited! Do check it out. I'd be glad to read your reviews!
Share :

Review: Forever is Not Enough



Forever is Not Enough by Reecha Agarwal Goyal
My rating: 5 of 5 stars


Book Description : 
“Life is what happens when you are busy making other plans.” –Lennon. Meet anay and Rhea, the college Sweethearts who promise to be together in, through and for life, blissfully unaware about life’s plan for them. Witness this saga of the deeply-in-love couple that embarks on the journey of ‘forever’ with beautiful dreams about their future together. But sometimes, forever is not long enough! Inspired by a true incident, this is a story of love, hope, strength, determination and perseverance.


This is one of those books where I just want to share a lot but I don't know where and how I should begin with. Well hence I begin with facts. The cover is brilliantly designed. It truly resembles what's inside the book. The story is agreed cliche but who doesn't love well penned cliches?

I am being honest and I couldn't find any errors in the book. The reason being that I was so engrossed in the story that I couldn't bring out my analytic mind and purposely find errors inside a book. The narration is butter smooth. The language is not so high yet has a lot of smartly used words which can contribute to your vocabulary. If you want to know about the story I can say it is quite relatable with great cliche stories with bitter-sweet endings.

The story is the king here even though the cover makes a good job bringing the bears to the honey filled combs. It is an absolute emotional rollercoaster. I know many just don't like cliches but I am a lover of well written cliches. The author has done a brilliant work with the story-telling and to be very honest I was quite disappointed reading the other reviews across the amazon and goodreads. It felt hardly anyone even bothered to finish it. If they had, they would've known the ending or what was the rollercoaster about or aren't fans of a good story even though a cliche.

Personally I know someone who has been through the phase this story talks about and now I can see and maybe feel what would it have been in their lives at that time and how they fought of that phase. You might feel it is predictable but trust me, last few chapters will make you shout, 'why?' If you know what I mean than you should go for it totally.

Link : https://amzn.to/2VFF7v3



Do comment and share your thoughts about it! I'd love to know what do you think. Also, I'd keep updating it quite often so do follow the Website to get all the updates by clicking here.

Also, a minor headsup.... Obsessed is free to read on Kindle Unlimited! Do check it out. I'd be glad to read your reviews!
Share :

Web Series Review : Game of Thrones - All Seasons

Image Source : IMDB
About Show : 
Nine noble families wage war against each other in order to gain control over the mythical land of Westeros. Meanwhile, a force is rising after millennia and threatens the existence of living men.

Personally, I don't think I need to introduce you to this show. It is undoubtedly one of the most internet famous shows. Initially backed by and based on A Song of Ice and Fire series by GRR Martin, this how almost took on its own course after season 4 as many of you might know.

Now how writers decided to take the story forward and what they had in discussions with the original author, I really don't know. But one thing that I know is that this series reached its hype only after the season 4. Till then it was known for its gore, adult mature scenes and nudity. Later as the show progressed it became more known for politics, its fantasy plot and ultimately who will bag the throne.

I had been following this series for a long time and I can say that the last two episode took a bitter sweet ending. If you know how 'How I met your Mother' and its last season, yes this felt like it. The hype and excitement rose on top of its charts after season 7 and its last episode especially.

Season 8 was something which was full of bitter sweet moments. There were moments which felt totally lame as there was so much build up for it during the whole series and it just ended without any explanation much. I am so disappointed about the arc of 'night king' and 'dragon queen' both the fantasy elements ended on an off note.

But the more I think about it the more I realise that the books were more into fantasy but the show was more about politics. It kept true to its theme of politics and I feel we as viewers might have been taken off track with all those internet theories about episodes.

I felt the ending couldn't have been much better. How each of the character ended and then when you look at their arcs, it felt complete. I feel ignoring the fantasy part could have been done on purpose as if people there wouldn't be much of an hype if everything was revealed in the fantasy segment in the show. Maybe George wanted to take some time and develop the fantasy in much deeper segment. Who knows? I think it is a way to say that if everyone watches the show hardly a few lovers will even look into the book.

This can be a very long and broad discussion. I'd like to know more about what do you think after the last episode. It just feels like an era has ended since my most favourite shows like Lucifer, The Big Bang Theory and now GOT have ended.





Do comment and share your thoughts about it! I'd love to know what do you think. Also, I'd keep updating it quite often so do follow the Website to get all the updates by clicking here.

Also, a minor headsup.... Obsessed is free to read on Kindle Unlimited! Do check it out. I'd be glad to read your reviews!
Share :

Review: Urban Lights



Urban Lights by Vishal Anand
My rating: 4 of 5 stars


Book Description : 
Everyone tells a story.Some inside their own head.Few to the whole world.

Urban Lights is a collection of poignant and heart-warming stories of various people and their lives. Loss or gain, love or pain, joy or sorrow, these are slices of lives that leave an enduring impression on their souls. Stories, which if untold will render the characters anguished.
Written by Vishal Anand after the huge success of 37 + Grace Marks and Emotions Unplugged, Urban Lights takes you on a breezy journey. A journey of simple souls. A journey of simple emotions. A journey of simple affairs. And, the journey assures to feel good!


I just loved this cover design. Well usually I am not the one which goes for funky covers but this one actually looks good and for once it made my non-reader brother get interested in this book for once. Coming to the content part, the stories are really good. I really enjoyed the narration. It made me feel I was one of the characters.

Most stories are in first person which makes the reader feel that the person who has been there is telling you his or her account. Most of these are really short episodes of the moments that we always keep close to our hearts. Alongside each of these episodes have a short message which you can pickup if you are a deep thinker.

I think these short episodes can be enacted in small skit formats if you want, as they are really very close to our daily lives and give a small message as well. There are some good, some funny and some bitter-sweet stories. Usually, I am not the person who takes up on short stories as I always love to dive into new worlds and explore around. But this collection is something I'd recommend to the ones who are first time readers or love short stories or just want someone to start reading.

One thing irked me while reading was the lack of character descriptions. Even though the stories were in first person there was always a lack of character introduction and its basic description. For that you will have to rely on your stereotypical character imaginations and things that you always have seen around you or have known before.

It is a very short and quick read. Also, since these are short stories you can read it while travelling or one story every time when you sit for relishing your favourite beverage during evenings.

Link : https://amzn.to/2JsMzIf



Do comment and share your thoughts about it! I'd love to know what do you think. Also, I'd keep updating it quite often so do follow the Website to get all the updates by clicking here.

Also, a minor headsup.... Obsessed is free to read on Kindle Unlimited! Do check it out. I'd be glad to read your reviews!
Share :

Learn Python With Dhawal -10- Chapter - Write A Code For Stone Paper Scissor Game


CHAPTER 10

I feel we have been far enough in our python journey to write a short little fun game to play when we get bored coding. This is a very short program to play Stone, Paper, Scissors with your computer using python. Remember, we aren't on that level where we start working on UI/UX and make a proper app. This would be a barebones app that can run in any terminal or IDLE. This fun little exercise will help you to build your logic further stronger. Obviously on later stages we might use graphical APIs to make a UI for it and make it a real app instead of barebones working code. But for now let's begin with it.

Input :


  1. import random
  2. computerScore=0
  3. userScore=0
  4. continuePlaying=1
  5. Guide={1:"Stone",2:"Paper",3:"Scissor"}

  6. #function to determine who wins and calculate the score
  7. def game(user,computer):
  8.     global computerScore
  9.     global userScore
  10.     if(user==computer):
  11.         print("It's a tie, please play again.")
  12.     elif(user==1 and computer==2):
  13.         print("Computer Wins")
  14.         computerScore+=1
  15.     elif(user==1 and computer==3):
  16.         print("User wins")
  17.         userScore+=1
  18.     elif(user==2 and computer==1):
  19.         print("User wins")
  20.         userScore+=1
  21.     elif(user==2 and computer==3):
  22.         print("Computer Wins")
  23.         computerScore+=1
  24.     elif(user==3 and computer==1):
  25.         print("Computer Wins")
  26.         computerScore+=1
  27.     elif(user==3 and computer==2):
  28.         print("User wins")
  29.         userScore+=1


  30. while(continuePlaying==1):
  31.     #User takes a number from 1-3
  32.     user=int(input("Enter your Choice\n1. Stone\n2. Paper\n3. Scissors\n"))
  33.     #Now we will check for wrong inputs
  34.     if(user>0 and user<4):
  35.         #Now Computer will make a random choice from 1-3
  36.         computer=random.randint(1,3)
  37.         print("User: ",Guide[user],"Computer: ",Guide[computer])
  38.         game(user,computer)
  39.     else:
  40.         print("Invalid Choice, Please Enter A Valid Choice")
  41.         
  42.     continuePlaying=int(input("Do you wish to Continue Playing?\nEnter 1 for Yes and 0 for No\n"))


  43. print("The total scores are : ")
  44. print("User :",userScore)
  45. print("Computer :",computerScore)

  46. if(userScore>computerScore):
  47.     print("User Wins")
  48. elif(computerScore>userScore):
  49.     print("Computer Wins")
  50. else:
  51.     print("It's a tie")
Output:
  1. Enter your Choice
  2. 1. Stone
  3. 2. Paper
  4. 3. Scissors
  5. 1
  6. User:  Stone Computer:  Scissor
  7. User wins
  8. Do you wish to Continue Playing?
  9. Enter 1 for Yes and 0 for No
  10. 0
  11. The total scores are : 
  12. User : 1
  13. Computer : 0
  14. User Wins


  1.  As you can see in line number one we import random, now random is a library we use just like math to bring on some functions that we need to use. You'd see where we are using random in next few lines of code.
  2. Next we create variables computerScore and userScore and initialize both of them to a value 0. Then we create a variable continuePlaying and assign 1 as value to it.
  3. Then we create a dictionary named Guide and assign the key-value pairs. You can skip this step if you want to but later on you'd require to make changes in code. It just makes the game look more real and connecting hence it isn't affecting the actual code even if you remove it. The main logic of the game would still work fine.
  4. Now we build the main logic of our game. It is most easiest as well as complicated part of the code. Easiest as you already know how the Stone, Paper, Scissor game works but complicated part would be implementing that on a computer and make it understand how to play it fair and square.
  5. We define a function named game and pass two variables user and computer as arguments. Remember, we always write the definition of a function before we call it. So if you miss the sequence you might be getting an error. Python is interpreted language and it would cause issue. So we have to write the code in this sequence. 
  6. Next you'd notice something funny. I have written global before the variable computerScore and userScore. Global variables are the ones which can be accessed anywhere in the program. When you create a variable inside the function it's scope aka its life is just inside the function. So when you want to call a global variable inside a function you need to mention that its a global variable that you're using and not creating a new variable with a same name.
  7. Similarly the variables user and computer that we would be using have their scope limited to the function. We just have created the variables using the same name so as to avoid the confusion. You can make new names for the variables that we would be using inside the function if you want, but for simplicity I have kept it the same.
  8. Then we build our IF...ELSE condition staircase to determine the results of the game depending upon the inputs given by user and computer. First we check whether both inputs are same if so we say 'it is a tie' and then we ask user to enter the input once again.
  9. If the inputs are fine and both computer and user input aren't same then we proceed to check who is the winner. We have assigned values to Stone as 1, Paper as 2 and Scissor as 3 for simplicity. You can take the literal names for this purpose as well but it would be a hassle to type and check strings as inputs and make the game slower without any specific benefits for it.
  10. Just build your IF...ELSE nested logic and finish the code. When user wins we increase the userScore variable by 1 and same goes for computer as when computer wins we increase the computerScore variable by 1.
  11. Now our main logic of the game which will decide who wins is done. Next step is that we have to take inputs both from computer and user.
  12. For that I am using a while loop which will keep running as long as the value of continuePlaying variable is 1. Now I have not used the trick like previous codes below as here we are taking user input and if user enters 1 it acts as a boolean true and if user enters 0 it acts as a boolean false but what if user enters something rubbish? The program will crash. Hence if user enters anything else than 1, the game will wind up and just display the final scores and results.
  13. Now we ask user for an input and take it into a variable like we usually do. Then we check if the entered input is greater than 0 and less than 4 which means it can be any of 1,2 or 3 and not anything rubbish. If it is anything else, we will display error message and ask user to enter the input again.
  14. Now if the user input is within range(1,3) we continue and ask computer to generate a integer number between 1 to 3. for that we would use random.randint() method and pass (1,3) as range inside as arguments. This will generate a random number from 1-3 anytime we execute this line of code.
  15. Now, this step is just for fun. We want to know what we gave as input and what computer gave as output. So we will print the names using the Guide that we had previously created and pass the key values as variables user and computer here. This will print what a user has chosen and what computer has chosen i.e. if the user entered 1 as input it will print stone and if computer entered input as 2 it will print paper using 1 and 2 as key values from our dictionary Guide.
  16. Now we call the function game and pass the inputs as arguments. Once it runs then we will ask the user if the want to play again or quit the game. If input is 1 it will run again and else it'll move on to next step.
  17. Now we print the individual scores of user and computer then we create IF....ELSE nested ladder to find out who is the winner and if its a tie and print the result accordingly.
  18. As further touch up steps you can add more conditions and make it much more complex as you want. Like if there's no input from user even once you can say the game was never played. You can add one more variable and loop for it or just one if condition and print statement. Play around with the code and enjoy.



I hope you enjoyed as much as I did writing this chapter. Here you learnt something more about loops, variables as well as functions in a gist and how to go about using them and build your own logic for various things.

<< PREVIOUS CHAPTER || NEXT CHAPTER >>

~*~*~*~

This series is totally authored by me (Dhawal Joshi). Any similarities found on the text, or codes or anything is purely accidental. All the sources of reference will be mentioned, linked and will be given the proper credits. If I miss anything or there's anything wrong, feel free to comment or send me an email and I'll try to edit it out. I am not a Python expert, I am sharing whatever I have learnt on my own and with a few sources around to refer from which will be mentioned. Also feel free to share this series with others so most can benefit out of it.

~*~*~*~

Do comment and share your thoughts about it! I'd love to know what do you think. Also, I'd keep updating it quite often so do follow the Website to get all the updates by clicking here.

Also, a minor headsup.... Obsessed is free to read on Kindle Unlimited! Do check it out. I'd be glad to read your reviews!
Share :