Smart Technology - Codemao

Form 3 - ECA

2024-2025

Floor 4 - Computer Room

Mr. Peter

Outline

Outline

1

Codemao Platform

Change language

Change to English

Ex10 - Tic Tac Toe

Tasks:

Tic Tac Toe Game

1.

Setup the scene

1.

2.

Change the background if you want

3.

Hide board list

4.

Hide machine variable

Ex10 - Tic Tac Toe

Cell

When game starts, forever to interact with user

Continuously to check if user mouse placing on the cell

Forever to check if machine placed, change the costumer

If user click the cell, then change the costumer and check board

Ex10 - Tic Tac Toe

Cell

Copy the completed one 9 times

Update the number for each copied

Update the number for each copied

Ex10 - Tic Tac Toe

Cell

Organize the cells

1

2

3

4

5

6

7

8

9

(-269, 213)

(-93, 213)

(78, 213)

(-269, 30)

(-93, 30)

(78, 30)

(-269, -154)

(-93, -154)

(78, -154)

Ex10 - Tic Tac Toe

Background - Machine Placing

Repeat to random where should be placing until find the cell that haven't placed

Update the list that map to the board

Ex10 - Tic Tac Toe

Download your program and name it as 01_YourName_Ex10.bcm4

Ex10 - Tic Tac Toe