Skip to content

Restructure exercises#15

Merged
katyanna merged 11 commits intomasterfrom
restructure-exercises
Oct 20, 2018
Merged

Restructure exercises#15
katyanna merged 11 commits intomasterfrom
restructure-exercises

Conversation

@mei-li
Copy link
Member

@mei-li mei-li commented Oct 15, 2018

  • Clean up and restructure exercises 1-4 and totally new 5 the rest moved number
  • Exercises 1-5 should be ready after this PR for the solutions.
Change C to be relevant to the previous steps and move the death function to another separate task.
tasks/README.rst Outdated

Continue in your file from the previous exercise or use the solution from the previous exercise
as a base for this exercise.
A) Create a function in the begging of your file that prints and alerts of wrong input (something to substitute the answer of the else).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need the blank lines between here also.

tasks/README.rst Outdated

B) When a user enters some room, print a message saying that her 2nd friend in the list is in the room. Remember: Access list elements like this, eg. friends[0], friends[1]

C) Make this name to be chosen randomly. Import Python library random, that has functions to help with random numbers and use random.randint(a, b) function to give you a random number between a and b. eg. random.randint(1,4) will give a random number among 1, 2, 3, 4.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we could use `` to specify literal text? as in random.randint(a, b).

tasks/README.rst Outdated
B) Use the variable in which you stored the players name to print a welcoming.
C) Customize the replies to the vampire to show the user name like in the code here.
D) Time to get creative! Ask one more question to the player and use their answer.
A) At the beginning of the program, add code to ask the name of the player and store the answer
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the exercises are not in a single line anymore, we should add a blank line between them, so rst doesn't understand as only one big chunk of text.

tasks/README.rst Outdated
A) Create a function in the begging of your file that prints and alerts of wrong input (something to substitute the answer of the else).
B) Use your function where it applies.
C) Now think a bit, how would you write a dead-function using an argument called death_message? Create this function.
C) Change your function to receive an argument called `valid`. eg `def wrong_input(valid)`. Your function can
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for the literal text rst uses double crass (``), not single (`) as in md.

@mei-li
Copy link
Member Author

mei-li commented Oct 16, 2018

Grrr the numbering is still messed up, sometimes it is 1. 2. and sometimes A)

@mei-li
Copy link
Member Author

mei-li commented Oct 19, 2018

all comments should be resolved
This PR addresses #15 and #11 for exercises 1-5

@katyanna katyanna merged commit db805cd into master Oct 20, 2018
@katyanna katyanna deleted the restructure-exercises branch October 31, 2018 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants