Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

While game instructions can be thought of as an algorithm, they are not necessarily stated as formally as algorithms that need to be executed by

image text in transcribed

While game instructions can be thought of as an algorithm, they are not necessarily stated as formally as algorithms that need to be executed by a machine because the intended computer for a tabletop game is the human. We need to get game instructions to be more precise and more formally stated in a way that is closer to what a machine might understand. Since an algorithm uses representations, we should begin by identifying what in the game needs to be represented in the algorithm. First, pick between Connect Four or SET as the game to analyze. Review the instructions for Connect Four or SET, and list all input and output in the game. Input can be given at the beginning of the game, such as the number of players, or input can be given during game play, such as where to move/ place a game piece. After listing all the input and output, provide the names you want to use to represent the input and output. These names are the variables in your algorithm that refer to the input and output. For example, we might name the number of players in our algorithm numPlayers. Input: Output: Names for each input and output

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial Accounting Tools For Business Decision Making

Authors: Paul D. Kimmel, Jerry J. Weygandt, Donald E. Kieso

3rd Edition

047169195X, 978-0471691952

More Books

Students also viewed these Accounting questions

Question

Define failure. (p. 273)

Answered: 1 week ago