May 5th 2016 Lesson Notes: Difference between revisions
(4 intermediate revisions by the same user not shown) | |||
Line 18: | Line 18: | ||
# We will check in with vacation | # We will check in with vacation | ||
# We will take another look at our [[chess]] program, reviewing line by line how it works | # We will take another look at our [[chess]] program, reviewing line by line how it works | ||
# We will identify | # We will identify the tasks you need to complete | ||
Line 33: | Line 33: | ||
# You will have one job this class. I need to see progress towards completing our move function. See below: | # You will have one job this class. I need to see progress towards completing our move function. See below: | ||
< | <syntaxhighlight lang="python"> | ||
def move(piece,destination): | def move(piece,destination): | ||
# is piece valid? | # is piece valid? | ||
Line 40: | Line 40: | ||
# would the move place the king in check? | # would the move place the king in check? | ||
return | return | ||
</code | </syntaxhighlight> | ||
Your specific task is to write code that allows a human player to move a virtual chess piece. | |||
</td> | </td> |
Latest revision as of 13:47, 5 May 2016
|
|
|
|
||
|
|
|
|