Tower defense (OOP4Fun Book)

TLA:n tiedot

Nimi
Task: Movement of enemies respecting delay
Kuvaus

The act() method of the Enemy class will be updated so that the Enemy moves only after the specified number of moveDelay calls of the method. Additionally, a new attribute called nextMoveCounter of type int will be introduced and initialized to 0. The act() method will be modified to call this.move(1) only when nextMoveCounter reaches 0. After the movement, nextMoveCounter will be reset to the value of moveDelay. If the Enemy instance cannot move because nextMoveCounter has not yet reached 0, nextMoveCounter will be decreased by 1.

Oppimistyypi
Harjoittelu
Kuvaus Oppiminen harjoittelun kautta mahdollistaa oppijalle sopeuttaa toimintansa tehtävän tavoitteeseen, ja hyödyntää palautetta parantaakseen seuraavaa toimintaansa. Palaute voi tulla itsereflektiosta, vertaistukea, opettajalta tai itse aktiviteetilta.
Example usage Harjoitustehtävien tekeminen, laboratorioharjoitukset ja virtuaalilabrat, kenttämatkat, simulaatiot, mallien käyttäminen, käytännön projektit,…
Työmäärä
30
Aktiviteetin toimitus
Verkkotyöskentely
Paikan päällä
Hybrid
Synnkroninen
Asynkroninen
Opettaja läsnä
Opettaja ei läsnä
Yhteistyö
Työskentely ryhmissä
Palaute

AI usage level
-

Arviointi