Learn your way! Get started

JavaScript by Example, Part 3 of 8: War Card Game

with expert Laurence Svekis


Watch trailer


Course at a glance

Included in these subscriptions:

  • Dev & IT Pro Video
  • Dev & IT Pro Power Pack

Release date 11/18/2021
Level Beginner
Runtime 1h 51m
Closed captioning N/A
Transcript N/A
eBooks / courseware N/A
Hands-on labs N/A
Sample code Included
Exams N/A


Enterprise Solutions

Need reporting, custom learning tracks, or SCORM? Learn More



Course description

Build the card game War with interactive cards.

Prerequisites

This course assumes knowledge of JavaScript or having gone through the previous courses: JavaScript, Part 1 of 3: Introduction JavaScript, Part 2 of 3: Advanced Coding JavaScript, Part 3 of 3: Document Object Model

Meet the expert

Providing Web development courses and digital marketing strategy courses since 2002. An experienced web application developer, having worked on multiple enterprise level applications, hundreds of websites, business solutions and many unique and innovative web applications. Web & application development areas of expertise include HTML, CSS, JavaScript, JQuery, Bootstrap, PHP and MySQL. Anything to do with web creation and digital experience. Passionate about ;everything to do with web application development, programming to online marketing with a strong focus on social media and SEO.

Course outline



War Card Game

Battle Card Game Introduction (27:55)
  • Introduction (00:08)
  • Battle Card Game Introduction (03:19)
  • Game Area Setup (06:00)
  • Start the Game (05:50)
  • Create Deck of Cards (04:25)
  • Create Game Players (08:01)
  • Summary (00:08)
Deal the cards (28:03)
  • Introduction (00:08)
  • Deal the cards (07:43)
  • Make Cards for Players (09:19)
  • Make the Card Look Better (04:27)
  • Game Logic (06:18)
  • Summary (00:08)
Handle Winner of Deal (30:26)
  • Introduction (00:08)
  • Handle Winner of Deal (08:12)
  • Multiple Rounds Attack (05:42)
  • Fix Playoff Function (10:50)
  • Game Restart (05:25)
  • Summary (00:08)
Tweaks and Fixes (25:19)
  • Introduction (00:08)
  • Tweaks and Fixes (11:27)
  • Battle Game Code Review (11:46)
  • Debug of Playoff Issue (01:49)
  • Summary (00:08)