Project: lb_for_honor

JavaScript·1 min read·Apr 23, 2025

Shield With Swords Illustration

A PvP game is a game in which two or more players battle each other using strategy, skills, and in-game mechanics to achieve victory.

The objective of this project is to write a JavaScript script that simulates a turn-based PvP fight between two heroes.

General instructions

Here are the general instructions to complete this project:

  1. The script must be named lb_for_honor.js.

  2. The script must be written in JavaScript.

The Game object

The script must declare and use a global variable named Game that contains an object literal with 2 methods, whose signature is as follows:

// File: lb_for_honor.js