Smart Technology - Codemao
Form 3 - ECA
2024-2025
Floor 4 - Computer Room
Mr. Peter
Outline
Outline
1
Ex18_1 - Bird and hamburger
2
Ex18_2 - Cat and hamburger
Codemao Platform
Change language
Change to English
Tasks:
1.
Collect control data from playing using List variable
Train a Neural Network to play the Game
2.
This video shows that the AI I trained is playing this game
Ex12 - Cat and hamburger
Setup the scene
1.
Play the game to understand the game rules
Import the cat_and_hamburger_template.bcm4 to the codemao
2.
Ex12 - Cat and hamburger
Collect enough training data from playing
2. Open this link and paste the content to download the csv file
1. Eat at least 10 ~ 20 hamburger during playing
Ex12 - Cat and hamburger
1. Import AI 2.0 Extension
Ex12 - Cat and hamburger
2. Create AI model and Import Data
Select the downloaded file
Ex12 - Cat and hamburger
3. Prepare data for the training
Ex12 - Cat and hamburger
4. Define the AI name
MoveBot
Ex12 - Cat and hamburger
5. Design and train your own neural network
Ex12 - Cat and hamburger
6. Test your AI model to play the game
If you trained the AI is not good enough, you can use the perfect training data to train your AI model
Ex12 - Cat and hamburger
Download your program and name it as YourClassNumber_YourName_Ex12.bcm4
Ex12 - Cat and hamburger
Smart Technology - Codemao
By Mr Peter
Smart Technology - Codemao
- 10