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 with AI-Powered 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

Fundamental Accounting Principles

Authors: Larson Kermit, Tilly Jensen

Volume I, 14th Canadian Edition

978-0071051507

Students also viewed these Accounting questions

Question

48. Prove Theorem 12.3.7.

Answered: 1 week ago