usecases 1 week in:
- Marking work on Class notebook on office 365
- whilst listening to you tube
- editing a blog
- organizing a raspberry jam
- responding to school email through office 365.
Over!
If you like this blog check out all the others here
usecases 1 week in:
Over!
If you like this blog check out all the others here
Hi all,
I'm attempting to train my year 12 GCE CS students into watching the Craig and Dave videos before they attend lessons to free up more time for coding and so they have some concept before attending the lesson. Craig and Dave promote this flipped learning approach and Alan O D has been talking about it for many years. As part of this process I have been trawling through videos of recent topics and posting questions based the videos as evidence that they have actually done this and to serve as useful notes these are the few that I have done so far are green........
Link to github for files
1.4.2 Data Structures YT playlist
(a) Arrays (of up to 3 dimensions), records, lists, tuples.
(b) The following structures to store data: linked-list, graph (directed and undirected), stack, queue, tree, binary search tree, hash table.
(c) How to create, traverse, add data to and remove data from the data structures mentioned above. (NB this can be either using arrays and procedural programming or an object-oriented approach).
Files are are to download from here:
2.2.2 Computational methods YT playlist
(a) Features that make a problem solvable by computational methods.
(b) Problem recognition.
(c) Problem decomposition.
(d) Use of divide and conquer.
(e) Use of abstraction.
(f) Learners should apply their knowledge of:
• backtracking
• data mining
• heuristics
• performance modelling
• pipelining
• visualisation to solve problems
2.3.1 Algorithms (Youtube playlist)
(c) Measures and methods to determine the efficiency of different algorithms, Big O notation (constant, linear, polynomial, exponential and logarithmic complexity).
(d) Comparison of the complexity of algorithms.
#colours
# Orange
# Pink / Skin
# Green
# White
# Red
# Sky blue / cyan
# Brown
# DARK GREEN
# Black
#faces
#@kari lawlor
Creeper = [
[DG, DG, DG, DG, DG, DG, DG, DG],
[DG, BL, BL, DG, DG, BL, BL, DG],
[DG, BL, BL, DG, DG, BL, BL, DG],
[DG, DG, DG, BL, BL, DG, DG, DG],
[DG, DG, BL, BL, BL, BL, DG, DG],
[DG, DG, BL, BL, BL, BL, DG, DG],
[DG, DG, BL, DG, DG, BL, DG, DG],
[DG, DG, DG, DG, DG, DG, DG, DG],
]
#Pig
#Alex
#print pixel art
#By @KariLawler (Twitter)
def print_PixelArt(List):
block = 35 # wool
x, y, z = mc.player.getPos()
pixel_y = y + len(List) - 1
pixel_z = z - 6
for row in List:
pixel_x = x
for pixel in row:
if pixel > -1:
mc.setBlock(pixel_x, pixel_y, pixel_z, block, pixel)
pixel_x += 1
pixel_y -= 1
mc.postToChat("Please hit the TNT block")
while True:
evs = mc.events.pollBlockHits()
for e in evs:
pos = e.pos
block = mc.getBlock(pos.x, pos.y, pos.z)
if block == 46:#TNT
mc.postToChat("Creeper")
print_PixelArt(Creeper)
elif block == 20:#glasselse:
mc.postToChat("Other block")
If you like this blog check out all the others here
In order to get the below code you will need to follow these blogs in order to get started:
Setting up the server link
My first code link
In this code you will use the following skills:
+Import code from libraries
+Create a connection to the Minecraft server(local on this pc only)
+Create a procedure to draw/drop a rainbow road beneath your feet every time that you move
Coding key skills
Selection |
| Sequence | Data Structures(Lists) |
Variables | Data Structures(2D arrays) | Input |
|
Logical Operators |
| String manipulation | Functions |
Procedures | File handling |
|
|
Instructions:
Follow the steps below and you will get there pretty quickly:
1.Open Idle
2.Click on “File” > “New File”
3.Type out the following code
5.
7. Next press enter...then this should happen.....
9. Next on Minecraft select “Multiplayer”.
9.Then type in "local host"
10.Type in local host and hit the “join server” button.
11. Press “Esc” on the keyboard to allow yourself to quickly pop back to IDLE so you can save and run your code.
12. In IDLE “File” >> “Save As” >> Call it “Rainbow road.py”
13. For it to work you will need to save it in a specific folder which is:
“AIMStarterKitPC\AdventuresInMinecraft-PC\MyAdventures”
Like I have here:
14. Still in IDLE select “Run” >> “Run Module”
15. Head back to Minecraft and you should see your code in action:
Rainbow Road pic.twitter.com/Y9MYq82wJz
— Warksjammyblog (@warksmessabout1) December 21, 2020
16. To kill the code / stop I from working you will need to press “Esc” >>> find this window in IDLE then close it down. See below:
If you like this blog check out all the others here
In order to get the below code to work you will need to follow these blogs in order to get started:
Setting up the server link
My first code link
In this code you will use the following skills:
+Import code from libraries
+Create a connection to the Minecraft server(local on this pc only)
+Create a procedure to draw a air "forcefield"
+ Using parameters
+Conditional statements
Coding key
Selection |
| Sequence | Data Structures(Lists) |
| Data Structures(2D arrays) | Input |
|
| Mathematical operators | String manipulation | Functions |
| File handling |
|
|
Instructions:
Follow the steps below and you will get there pretty quickly:
1.Open Idle
2.Click on “File” > “New File”
3.Type out the following code
4.In the Adventures with Minecraft folder click on “Start Server”
5.
7. Next press enter...then this should happen.....
9. Next on Minecraft select “Multiplayer”.
9.Then type in "local host"
10.Type in local host and hit the “join server” button.
11. Press “Esc” on the keyboard to allow yourself to quickly pop back to IDLE so you can save and run your code.
12. In IDLE “File” >> “Save As” >> Call it “Forcefield.py”
13. For it to work you will need to save it in a specific folder which is:
“AIMStarterKitPC\AdventuresInMinecraft-PC\MyAdventures”
Like I have here you can see three example programs:
14. Still in IDLE select “Run” >> “Run Module”
15. Head back to Minecraft and you should see your code in action:
@piinthesky2015 s “Forcefield” pic.twitter.com/shd70GGhLa
— Warksjammyblog (@warksmessabout1) December 20, 2020
16. To kill the code / stop I from working you will need to press “Esc” >>> find this window in IDLE then close it down. See below:
Walking Random blocks
In order to get the below code you will need to follow these blogs in order to get started:
Setting up the server link
My first code link
In this code you will use the following skills:
+Import code from libraries
+Create a connection to the Minecraft server(local on this pc only)
+Store 16 block ID's in a list
+ Create two procedures 1) drop a random wool block 2)drop a glass block
+Use a basic while loop (iteration)
+Call a named procedure, select a random number from a list and then drop that colour block
+Wait for 0.1 seconds
Coding key skills
|
Selection |
|
Sequence |
|
|
Variables |
Data Structures(2D
arrays) |
Input |
Output |
|
Logical Operators |
Mathematical
operators |
String manipulation |
Functions |
|
|
File handling |
|
|
Instructions:
Follow the steps below and you will get there pretty quickly:
1.Open Idle
2.Click on
“File” > “New File”
3.Type out
the following code
4.In the
Adventures with Minecraft folder click on “Start Server”
5.
7. Next press enter...then this should happen.....
9.Then type in "local host"
10.Type in
local host and hit the “join server” button.
11. Press
“Esc” on the keyboard to allow yourself to quickly pop back to IDLE so you can
save and run your code.
12. In IDLE “File” >> “Save As” >> Call it “Drop blocks.py”
13. For it
to work you will need to save it in a specific folder which is:
“AIMStarterKitPC\AdventuresInMinecraft-PC\MyAdventures”
Like I have
here:
14. Still
in IDLE select “Run” >> “Run Module”
15. Head
back to Minecraft and you should see your code in action:
— Warksjammyblog (@warksmessabout1) October 17, 2020
16. To kill
the code / stop I from working you will need to press “Esc” >>> find
this window in IDLE then close it down. See below: