Resource Gathering AI Development

Resource Gathering AI Development

Assessment

Interactive Video

Computers

9th - 10th Grade

Hard

Created by

Ethan Morris

FREE Resource

In this video, Code Monkey demonstrates how to create a simple resource gatherer AI using C#. The tutorial begins with setting up the scene and creating a basic gatherer AI script. The video then progresses to implementing basic AI logic for resource gathering, testing the AI, and making it more adaptable. Finally, advanced AI logic is implemented, and the AI is tested with multiple resource nodes to ensure functionality. The video concludes with a brief overview of the AI's behavior and a preview of the next video.

Read more

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary goal of the resource gatherer AI project introduced in the video?

To design an AI that can navigate a maze

To create a complex AI for a battle simulation

To develop a simple AI that gathers resources and stores them

To build an AI that can interact with other players

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the first step in creating the gatherer AI script?

Creating a database for resource management

Implementing complex decision-making algorithms

Designing a user interface for the AI

Adding fields to store the gold node and storage transform

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does the AI determine when to play the mining animation?

When the unit is within 5 units of any object

When the unit receives a command from the player

When the unit is idle and at the resource node

When the unit is within 10 units of the storage

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What change is made to make the AI more adaptable?

Implementing a state-based system

Introducing a new user interface

Increasing the number of resource nodes

Adding more complex animations

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the initial state of the AI when it starts?

Idle

Gathering resources

Moving to storage

Searching for enemies

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does the AI decide to move towards the storage?

When the inventory amount is greater than zero

When the inventory amount is zero

When the player issues a command

When the storage is full

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens when the AI reaches the storage?

It waits for a new command

It plays a victory animation

It resets the gold inventory amount to zero

It starts gathering resources again

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?