logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Isaac TorresData mining
(4/5)

698 Answers

Hire Me
expert
StatAnalytica ExpertPolitical science
(5/5)

713 Answers

Hire Me
expert
Tristan WallaceEnglish
(5/5)

550 Answers

Hire Me
expert
Samantha JiNursing
(5/5)

798 Answers

Hire Me
Others
(5/5)

Find Them All is a single-player puzzle game where the objective is for the player to find all the Pokémon without scaring them away by stepping on them.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Introduction

The goal of this assignment is to produce a text-based game with Python.

Getting Started

To start, download a1.zip from Blackboard and extract the contents. The a1.zip folder contains all the necessary files to start this assignment. Some support code has been provided to assist with implementing the tasks. You will be required to implement your assignment in a1.py. 

The other provided file is a1 support.py, which contains some code to help you implement your assign- ment. You are not compelled to use this file to implement your assignment but it is strongly recommended. Do not make changes to the a1 support.py file. The only file that you are required to submit is a1.py. It could cause unexpected errors if you made changes to the a1 support.py file as well. 

Concepts

Pokemon:  Gotta  Find  Them  All!  is a single-player puzzle game where the objective is for the player to find all the Pokemon without scaring them away by stepping on them. When the game starts the player should first be prompted for the game “size” (i.e. the grid size), before being prompted for the number of Pokemon used in the game. The game should then be displayed with all tiles unexposed (see Fig.  1 for a sample game of grid size, 7). 

At each turn the player should be prompted for an action. Table 1 shows a list of valid actions: 

 

Input

Action

Example

’-Upper  Case  Character--number-’

Select a cell

‘A1’

‘f -Upper Case Character--number-’

Place/remove a flag

‘f A1’

‘h’

Help text (see examples at end)

‘h’

‘q’

Quit

‘q’

‘:)’

Restart

‘:)’

 Table 1: List of valid actions.

 If, say, ‘C4’ is entered, then the cell at position, C4, should be uncovered to reveal a number that indicates how many Pokemon are hidden in the neighbouring cells.  If no Pokemon are present in any neighbouring cells then the number 0 should be displayed. For cells which have a zero value (i.e. no neighbouring poke- mons) all the cell’s neighbours are uncovered (i.e. they are made to display the number of pokemons in neighbouring cells). If one of those neighbouring cells is also zero then all of that cell’s neighbours are also uncovered. This process repeats until there are no more 0’s uncovered. This forms a section. (See Fig. 2 for an illustration of this). (The big fun search function in the support code will search through the game to determine which cells needs to be uncovered)

 If, say, ‘f B1’ is entered, then a flag will be placed on the cell at position, B1, provided there is no flag currently on that cell. Alternatively, if there is a flag on that cell, the flag will be removed.

 If ‘h’ is entered, then advice about how to play the game is provided. See the Section, “Examples of how the game should run”, to see what this text should be. If ‘q’ is entered, then the game provides a prompt to make sure the player wants the game to end. If they do, then the game ends. (See the section, “Examples of how the game should run” to see the required text). If ‘:)’ is entered then the game is reset (i.e. restarted).

 The game ends when either:

The player loses the game by selecting a cell that contains a Pokemon, thus scaring away all the Pokemon (see Fig. 3).
The player wins the game by correctly flagging all cells with hidden Pokemon AND exposing all cells that do not contain Pokemon.
(5/5)
Attachments:

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme