Tutorialspoint

#May Motivation Use code MAY10 for extra 10% off

Card War Game: JavaScript Project Course

person icon Laurence Svekis

4.6

Card War Game: JavaScript Project Course

Create a dynamic fully functional card game using JavaScript - source code is included build your own version

updated on icon Updated on May, 2024

language icon Language - English

person icon Laurence Svekis

English [CC]

category icon Development,Game Development,Game Development Other

Lectures -18

Resources -1

Duration -1.5 hours

4.6

price-loader

30-days Money-Back Guarantee

Training 5 or more people ?

Get your team access to 10000+ top Tutorials Point courses anytime, anywhere.

Course Description

Learn more about JavaScript - DOM manipulation while building a fun interactive game from scratch

Card war game - highest card wins the pot of cards -

Game outline

  1. Let the user select the number of players

  2. Use JavaScript to create a deck of cards (52)

  3. Deal the cards to each player evenly

  4. Flip the top card for each player

  5. Check which card it the highest value - if there is a tie run a playoff

  6. On tie run the playoff function checking to see the players followup cards and who has the highest.  If the player runs out of cards they lose.

  7. Let the player determine how many rounds of attack will be run

  8. Keep running steps 4-7 until one player holds all the cards and is the winner

  9. Once a winner is determined allow the player to restart the game build the sequence again

Course Covers

  • Element selection and manipulation

  • Creating arrays in JavaScript - Array methods and array data handling

  • Adding event listeners to listen for user interactions

  • Updating element style properties and values on the fly

  • Adding and removing element classes

  • Creating elements dynamically and adding them to the page

  • Applying game play logic and game development logic

  • Big fixes and debugging applications

  • Checking game logic and applying game logic to create play path

  • Source Code is included

No libraries, no shortcuts just learning JavaScript making it DYNAMIC and INTERACTIVE web application.

Step by step learning with all steps included.

Beginner JavaScript knowledge is required as the course covers only JavaScript relevant to the building of the game.  Also HTML and CSS knowledge is essential as scope of this course is all JavaScript focused.  

Start building your own version of the game today!!!!

Who this course is for:

  • Beginners to JavaScript
  • Anyone who wants to practice writing JavaScript
  • Web developers
  • Anyone who wants to learn to make a JavaScript game without any libraries
  • Beginners to JavaScript curious about Document Object Model and JavaScript Methods

Goals

What will you learn in this course:

  • How to use JavaScript
  • How to create elements dynamically
  • Manipulate elements using JavaScript
  • Explore JavaScript Document Object Model

Prerequisites

What are the prerequisites for this course?

  • Fundamental JavaScript concepts
  • Access to computer
  • Use of editor to write code
Card War Game: JavaScript Project Course

Curriculum

Check out the detailed breakdown of what’s inside the course

Introduction
1 Lectures
  • play icon Battle Card Game Introduction 03:19 03:19
Card war game using JavaScript
16 Lectures
Tutorialspoint

Instructor Details

Laurence Svekis

Laurence Svekis


Course Certificate

Use your certificate to make a career change or to advance in your current career.

sample Tutorialspoint certificate

Our students work
with the Best

Related Video Courses

View More

Annual Membership

Become a valued member of Tutorials Point and enjoy unlimited access to our vast library of top-rated Video Courses

Subscribe now
Annual Membership

Online Certifications

Master prominent technologies at full length and become a valued certified professional.

Explore Now
Online Certifications

Talk to us

1800-202-0515