Tutorialspoint

April Learning Carnival is here, Use code FEST10 for an extra 10% off

Card War Game: JavaScript Project Course

person icon Laurence Svekis

4.1

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 Apr, 2024

language icon Language - English

person icon Laurence Svekis

category icon Development,Game Development,Game Development Other

Lectures -18

Resources -1

Duration -1.5 hours

4.1

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

Instructor, GDE, Application Developer

I'm here to help you learn, achieve your dreams, come join me on this amazing adventure today
Google Developers Expert - GSuite

Providing Web development courses and digital marketing strategy courses since 2002.

Innovative technology expert with a wide range of real world experience. Providing Smart digital solutions online for both small and enterprise level businesses.

"I have a passion for anything digital technology related, enjoy programming and the challenge of developing successful digital experiences. As an experienced developer, I created my first computer applications in 1990, and my first website in 1998.  I enjoy sharing my knowledge with others and want to help you share in the wonderful opportunities that the internet provides."

"Learning, understanding with a strong passion for education.  The internet has provided us with new opportunities to expand and share knowledge."

Want to learn more about becoming a web developer, do you want to experience the freedom that technology provides for us? Learn how to bring amazing things to life online.  Technology connects us all in many ways.  It opens up doors to those who embrace it and learn how to make those connections real.

"My courses are designed to help you achieve your goals, learn and update skills"

Background : 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. 

"Understanding technology provides a means to better connect with users.  It also opens so many doors.   Knowledge is the key to success and I want to help you experience what technology has to offer. I'm passionate about web technologies, and look forward to sharing my knowledge and experience with you!"

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