[Solved] SI507 Homework 1

$25

File Name: SI507_Homework_1.zip
File Size: 150.72 KB

SKU: [Solved] SI507 Homework 1 Category: Tag:
5/5 - (1 vote)

Part 1: Debugging (10 points)

Fix the problems in syntaxerrors-harder.py and upload your fixed file.

Part 2: Tic-Tac-Toe Program Design (10 points)

Design and start to build a basic tic-tac-toe game. You dont have to write the code for this program. When completed, your program should work something like this (note that this version uses compass directions to identify the different cellsyours can be different):

$ python ttt.py

CURRENT BOARD:

| |

| |

| |

Xs move > C

CURRENT BOARD:

| |

| X |

| |

Os move > NE

CURRENT BOARD:

| | O

| X |

| |

Xs move >

And so on

Here is the process

  • Start by writing down on paper or in a text editor all of the subproblems you will need to complete in order to write the program.
  • Open file py and you can see the partially completed process.
  • Follow the format as shown by Step 1 and Step 5, write function definitions (what the function will do) for steps in between think about what the function will need to take in (parameters) and what it will need to return. Specify these in comments.
  • For the full 10 points, you need to have identified at least 3 different sub problems (Yes you can write more than 3 steps between Step 1 and Step 5), written valid function definitions for them, and commented them appropriately.
  • Submit your file, named py

You may work with another student on this problem. In the Canvas Assignment text field, identify anyone that you worked with. Each student should submit their own version of the file, however.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] SI507 Homework 1[Solved] SI507 Homework 1
$25