Skip to main content

Posts

Showing posts from February, 2020

The Designing Strategy

This post is about the step by step algorithm or we can also call it as pseudo code that we are going to implement to design the game... •Ask for number of attempts •Ask for minimum word length • Open the word list file & select a random word •Create a set of remaining letters and initialize it to contain the 26 ASCII lowercase character  •While there are attempts remaining OR there are unguessed letters in the word remaining Print the word with the unguessed letters censored •Ask for the next letter and make it lowercase If the "letter" has multiple characters Notify the player that the "letter" has multiple characters Else if the letter is not an ASCII lowercase character Notify the player that the letter is not an ASCII lowercase character Else if the letter is not in the remaining letter set (i.e. has been guessed before) Notify the player that the letter has been guessed before Else If letter is in the word Notify the player that the letter is in the

Journey towards Creating Hangman.

I love when people take a sophisticated tool and use it to play video games. Take Unity for example. I first saw my friends created a game in Unity, which was an Virtual reality game. My friends Vivek and Payas then inspired me to more efficiently waste time in creating something of my own like their VR game. Rather than jumping directly to a VR game so we thought to start something from the basics. So, the other day I had an immense amount of college work to do and decided it was the perfect time to make a hangman game.  So, What is hangman? In its purest form, hangman is a word game played between two people. One person selects a secret word, and the other tries to determine the word by guessing it letter-by-letter. The player with the secret writes a series of dashes, one representing each letter in the solution. Initially, no information is known about the target word, other than its length. The solver calls out letters, one-by-one. If a called letter appears in the solution, a

Introduction

This blog will feature a case study of game development using OOP. The game to be developed is "HANGMAN". To begin with we have to decide which language to choose for implementing the application.The most popular choices for this task can be Python and C++. While C++ is very much efficient in terms of runtimes and memory usage , it offers less features and limited libraries.On the other hand Python consists of a ton of in-built libraries for development purposes. Thus, using Python is the suitable way to proceed for this project .