Comparing CodeCombat and CodeAcademy

I personally found Code Combat much more fun, because it felt like it was a game, rather than a chore, so I was more willing to learn. In terms of teaching code as best as possible, I think CodeAcademy is better because it is more focused on just the code, but it is also much less enjoyable, so there is a tradeoff.

I felt like coding R. on DataCamp felt exactly the same as coding in Python on CodeAcademy

I2P Balance Board Game Summative

 

Flowchart:

Pseudo Code:

Reflection Questions:

What worked?

We were able to easily make the prototype with makey makey and coins since in the previous lesson we got a good grasp of how it worked.

What didn’t work so well?

We weren’t sure how to code in scratch to use our prototype.

Things to find out for next class?

How to make a timer in scratch that starts and stops when certain keys are pressed.

What would you like to appear on the screen?

We would like a leaderboard to appear on the screen and we would like a sprite to speak when certain things are said.

Time in (HH:MM:SS)?

Our time will be recorded in seconds.

Does the time count up or down?

The time counts up.

Can the user input their name?

Yes.

How does the timer stop and record each users time?

The timer will stop when any key is pressed which signals the board touching the ground.

How can you record the users time to a text file?

I do not know how to use a text file.

Prototype:

Whenever the aluminum ends of the balance board touched the coins, the w or s buttons would be clicked on the Makey Makey. For our code, the timer will only time while the s and w keys are not being pressed.

Code in Scratch:

Video in Scratch:

Code in Python:

Video in Python:

Testing Document for Scratch and Python:

https://docs.google.com/spreadsheets/d/1NMa1STGdCPZJS2Ah98bFAmh2rTwrfIEEP3s4Flph0XA/edit#gid=0

References:

https://stackoverflow.com/questions/33035755/read-high-scores-from-text-file-and-rank

https://stackoverflow.com/questions/30136331/how-to-sort-the-text-file-records-based-on-date-time

https://stackoverflow.com/questions/44372046/tkinter-timer-to-start-at-0-on-button-click

I2P Scratch Intro

Scratch:

 

Explore and investigate: “What is SCRATCH?”

Scratch is a website where you can program sprites to do certain things. It is a simplified version of coding.

 

What could you create with Scratch programming?

You could create a fox that walks around and says “racks in the bank”

Create a short game of your choice (or pong), using sprites and key press actions.

We already did. Don’t worry about it.

Add a video / screenshot of your scratch program

Makey Makey:

Explore & Investigate: “What is a Makey Makey?”

Create a musical project demonstrating the use of a makey makey with scratch

Create a short video demonstrating your creation

Which programs can you use to program a Makey Makey?

3x Web References you have used

Suggest other fun projects you could create with Makey Makey.

I2P The Quiz Summative Project

Documentation

Flowchart:

Pseudocode:

 

Video

https://www.youtube.com/watch?v=x2ckFcfFYDk&feature=youtu.be

Annotation/Comments/Explanation of my code is done through the video.

 

Documentation

https://docs.google.com/spreadsheets/d/1NMa1STGdCPZJS2Ah98bFAmh2rTwrfIEEP3s4Flph0XA/edit#gid=0

 

References

This forum taught me how to use the score counter, but more importantly, how to total the score at the end of the game.

https://stackoverflow.com/questions/27337331/how-do-i-make-a-score-counter-in-python

This website taught me how to use the sleep timer, which helped my game greatly by giving the player time to read before it moved on.

http://pythoncentral.io/pythons-time-sleep-pause-wait-sleep-stop-your-code/

This website taught me how to use the if, elif, and else statements correctly. It was a major part of my code and involved in every question. Without it I don’t know where I would be. There are also some additional pages you can get to that go further in depth that I used.

https://www.tutorialspoint.com/python/python_if_else.htm

 

I2P Coding Lesson 5b

Today I added a counter to my word guessing game so the user could see how many times they had to guess to get it right.

Code:

Result:

I learned how counters work and how they have to be inside the loop.

I2P Coding Lesson 4

Tasks:

If vnum1 is less than vnum 2 then, print vnum1 is smaller

While count is less than 6 print count is less than 6

For i in range 10 print i

For each letter in “your name” print each letter

Code:

Results:

Pseudocode:

Feeding dog

Obtain box containing dog food

Open box containing dog food

Locate scoop for dog food

Pick up one scoop of dog food

Locate food bowl

Pour dog food into bowl

Flow Chart:

Reflection: We created a flowchart and psuedocode for the real life scenario of feeding a dog. These two methods can help you plan out your code without having to deal with syntax and also while making it easy to comprehend.

Pseudocode for the number game:

Select a random number

Get a guess from the user

While the guess is incorrect

if it’s too high then print “Try lower…”

if it’s too low then print “Try higher…”

While the guess is correct

print “Well done! You got it!”

Flowchart:

Code:

Results: