27 Lab 4.pdf

(2349 KB) Pobierz
Construct 2
Lab Exercise 4: Tic-Tac-Toe Finishing
This is a short and simple lab to make sure that you understand the logic of the Tic-Tac-Toe
game.
1. Get the download of Tic-tac-toe and open it within construct.
2. Without watching the video or looking at the solution, see if you can delete and recreate
the logic events that determine if X or O wins.
3. As more practice, add an additional clause that will check for diagonal victories as well.
This may not be the same as my formula, but if it works, that’s great!
4. Check that both players can win on both diagonals and that the formula does
not inhibit winning horizontally or vertically.
5. Once you have a solid grasp on the game, try creating
a different size field. This will require you to change
some of the floor division and multiplication to detect
click position.
6. Try adding in your own images as sprites instead of the
traditional X and O.
Facebook.com/LearnToProgramMedia
learntoprogram
.tv
Zgłoś jeśli naruszono regulamin