|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/build-a-connect-4-clone-in-react-javascript-foundations/
课程评论:没有评论
课程名称:使用 React 和 JavaScript 基础构建 Connect-4 克隆游戏 课程概述:如果你在成长过程中热爱游戏,Connect-4 可能不会陌生——这是一款广受欢迎的游戏,其目标是在网格状的容器中连接四个同色圆盘,先于对手完成。通过这门课程,你将有机会重温这一美好的童年回忆,使用 React 构建一个 Connect-4 克隆游戏。React(也称为 React JS)是一个强大的 JavaScript 库,旨在通过 UI 组件构建自定义互动用户界面。一些知名的组织(如 Netflix、Facebook 和 Airbnb)在前端开发中都使用 React。该库由 Meta 和独立开发者社区共同开发和维护,且免费开源。 React 是一个完全基于 JavaScript 构建的组件库,非常适合设计复杂的用户界面。开发者可以创建封装的组件,能够有效管理自身状态并在数据变化时专门刷新 UI。例如,Twitter 动态刷新功能或 Facebook 点赞按钮,都是 UI 组件在页面上根据数据更新而改变状态的体现,这正是 React 的一个小而强大的特性。 通过一个完整的实践项目,本课程将教授你成为熟练的 React 开发者所必需的基础原则。我们从所需工具入手,指导你创建 Connect-4 游戏板。在此基础上,我们深入学习 React 的点击事件、属性传递、解构、React 子组件以及参数传递。掌握基础后,学生将学习游戏组件的多种样式技术,包括动态类和处理回调,探索行内样式、全局样式和动态样式的结合。 接下来,我们将探讨 React 状态钩子、React 键属性以及初始化游戏模块。学生将应对包括计算赢家、判断平局和 React 生命周期事件等中级概念。在最后一模块中,我们将探索 AI 的实现,用于自动移动建议和单人游戏。 除了实践的 React 模块,我们还提供全面的 JavaScript 概述,适合需要复习的学生。我们从文档对象模型(DOM)的介绍开始,该模型定义了 HTML 文档的逻辑结构,然后深入 JavaScript,演示如何操作 DOM 元素以为静态组件添加交互性。课程从基础开始,包括 JavaScript 的引用、数据输出、变量声明、算术操作、运算符优先级、数据类型和对象。一旦基础夯实后,我们将进入更复杂的操作,比如数组、条件语句、JavaScript 比较运算符、布尔值和循环。学生将在此过程中学习如何发挥 JavaScript 的真正能力,根据用户交互渲染不同的结果。我们将探索使用函数高效处理重复任务及利用 JavaScript 事件处理基于动作和事件的输出。课程最后通过实践项目,学生将运用所学知识构建一个基于网页的照片画廊和背景颜色更改器。
If you had a passion for games growing up, you're likely no stranger to connect-4 - a wildly popular game with the objective of connecting four single colored disks into a grid-like holder before your opponent. With this course you have the opportunity to relive this fond childhood memory by building a connect-4 clone using React. React, also known as React JS, is a powerful JavaScript library used for building custom, interactive user interfaces using UI components. Some of the most well known examples of organizations using React for their front-end include Netflix, Facebook, and Airbnb. Developed and maintained by Meta along with a community of independent developers, React remains free and open-source. React is a component based library built entirely on JavaScript, which makes it perfect for designing complex UI's. With React, developers can build encapsulated components that efficiently manage their own state and render UI updates specifically when data changes. For example, think of the automated content refresh feature you see on a twitter feed, or Facebook like button. Here the state of the UI component changes on the page, without having to manually refresh when the data is updated. This is just one small, yet powerful feature of React.Through a complete hands-on project, this course will teach you all the fundamental principles of React that you must know to become a proficient React developer. We start with the tools needed to get started with React, along with instructions on creating the Connect-4 game board. From there we dive in to React OnClick Events, Passing Props, Destructing, React Children, and Passing Arguments. With a solid understanding of the foundations, students move on to various styling techniques for the game components, along with Dynamic classes, and handling callbacks. Here we'll explore inline, global, and dynamic styling coupled with dynamic classes. We will then move on to the React State Hook, React Key Property and initializing the game modules. Students then tackle more intermediate concepts including the logical components of calculating a winner, determining a draw, and React Lifecycle events. In the last module, we explore the implementation of AI for automated move suggestions, and single player games.In addition to the hands-on React module, we also offer a comprehensive overview of JavaScript for those who need a refresher. Here we start with introducing students to the document object model (DOM) which defines the logical structure of HTML documents. From there we dive into JavaScript to demonstrate various methods in which DOM elements can be manipulated to add interactivity to static components. We start right from the basics, which includes JavaScript placement, and data output. From there we move on to variable declaration, arithmetic operations, operator precedence, data types, and objects. Once the foundations are covered, we move on to more complex operations using Arrays, Conditional Statements, JavaScript comparison operators, Booleans and loops. Here students will learn to unleash the true power of JavaScript to render different outcomes based on user interaction. We will explore the use of functions to efficiently handle repetitive tasks and JavaScript events to handle output based on actions and occurrences. The section will conclude with a hands-on project where students will implement their knowledge to build a web based photo gallery and background color changer.