Project Description for Game
Get a brief introduction to "Game" and learn which features we'll be building in this project.
We'll cover the following
Introduction
Online games are widely popular and played by people of all ages. They are playable on various devices such as mobiles, computers, tablets, etc. There are many different types of online games. These include board, arcade, role-playing, first-person shooter, and fantasy.
The scenario and the problems discussed in this chapter also relate to game development.
Statement
You work for a company that develops online games. Your company is developing a variety of board or arcade games. These include traditional card games like poker as well as other custom card games. All of these games can be played in single-player mode. Therefore, your team also needs to create a computer player to play against users.
Your first task will be to implement a feature that helps the computer player play a variation of poker. We will have to determine if a hand of given cards is a hand of straights or not. For the next feature, we will create a custom card game called Fizzle. In this feature, the computer player has to find the maximum points that can be obtained by picking out cards from a set of ten revealed random cards.
Balloon Splash is one of the arcade games being developed. It involves the player splashing adjacent balloons of the same color. On each splash, the player will obtain points and the set of balloons will disappear.
Features
We will need to introduce the following features to implement the functionality discussed above:
Feature #1: Determine if a hand of straights is possible.
Feature #2: Find the maximum points that can be obtained from a set of ten random cards.
Feature #3: Remove the given number of adjacent balloons repeatedly until no more balloons can be splashed.
In the coming lessons, we will discuss these features and their solutions in detail, so that you’ll be able to map the solution to this scenario to different interview problems as well.
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.