Programming a Tic-Tac-Toe Game in C# - Full Guide

OttoBotCode
OttoBotCode
30.1 هزار بار بازدید - 2 سال پیش - Learn how to program a
Learn how to program a Tic-Tac-Toe game in C# using WPF.

Download the assets here:
https://ottobotcode.com/ticTacToeAssets/

Source code is available here:
Patreon: 78705

In this video you will learn how to program a Tic-Tac-Toe game (also known as "Noughts and Crosses" or "Xs and Os" in C# using WPF. This tutorial is a complete step-by-step tutorial. We develop the game from scratch, without the use of any game engine.

The game is relatively simple, but we implement some cool features and add animations to make the final product more appealing.

The code is written in C#, but the game logic and overall design of the game can also be used in other programming languages like Java and C++.

Have fun learning about Game Development in C#!

Chapters
0:00 - Introduction
0:22 - Creating Data Classes
3:20 - The Game Logic
14:37 - Importing Assets
15:50 - Color Resources
16:58 - Writing the UI
23:28 - Loading Images
24:39 - GameGrid Setup
26:04 - Create Event Handlers
26:43 - Register Event Handlers
27:12 - Detecting Clicked Square
28:35 - Handling Move Made
29:06 - The Game So Far
29:23 - Handling Game Over
31:35 - Restarting the Game
33:03 - Winning Line
36:23 - Fixing a Bug
36:52 - Centering the Window
37:18 - Scaling the UI
38:12 - Animations for X and O
41:27 - A Strange Bug
42:13 - Smoother Transitions
45:37 - Tricky Bug Nr. 3
46:09 - Animating the Line
47:43 - Adding an Icon
47:59 - Thank you!
2 سال پیش در تاریخ 1400/11/06 منتشر شده است.
30,148 بـار بازدید شده
... بیشتر