Tower defense (OOP4Fun Book)

2. Algorithm

3h 15min
  • TS 2.1. Introduction to Algorithms and Algorithmic Thinking
  • TS 2.2. Greenfoot Adventures: Unraveling Java Method Invocation, Documentation, and Application Control

Understanding the basics of algorithmisation (60%)
Understanding the syntax of the Java programming language (10%)
Analysing program execution based on the source code (20%)
The ability of creating own programs with the use of OOP (10%)
TS 2.1. Introduction to Algorithms and Algorithmic Thinking
Hankinta
1 Introduction to basic algorithms as a sequence of steps

A sequence of steps


15 min
Tutkimus
2 Task 2.1

Write a simple algorithm


20 min
Hankinta
3 Algorithm and its properties

Algorithm and its properties


15 min
Harjoittelu
4 Task 2.2

Write a more general algorithm


25 min
Hankinta
5 Algorithmisation

Algorithmisation


15 min
TS 2.2. Greenfoot Adventures: Unraveling Java Method Invocation, Documentation, and Application Control
Keskustelu
1 Explanation of act () method

Code explanation


15 min
Keskustelu
2 Explanation of move() method

Code explanation


10 min
Hankinta
3 Introducing keyword this

Basic concepts: Keyword this


5 min
Tuotanto
4 Task 2.3

Call a method


10 min
Tutkimus
5 Explanation of Autocompleting

Code explanation: Autocompleting


5 min
Hankinta
6 The importance of code documentation

Basic concepts : Documentation comments


15 min
Tuotanto
7 Task 2.4

Add documentation


5 min
Tuotanto
8 Task 2.5

Add more documentation


5 min
Tutkimus
9 Task 2.6

Read the documentation


10 min
Harjoittelu
10 Task 2.7

Explore application controls


20 min
Keskustelu
11 Discussion: Algorithm, properties, algorithmisation, Greenfoot buttons

Theory revision: Algorithm, properties, algorithmisation, Greenfoot buttons


5 min