Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Add randomness to health and damage values

Open
#3 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
game-dev

Research direction

No files or tests are named. Search the repository for enemy initialization and attack or damage resolution, then trace how health and attack values are assigned. Done means enemies begin with the requested random ranges and attacks produce damage from 7 through the robot's attack value, including the specified enemy values.

Written by the indexing model from the issue text.

Description

  • Start enemies at a random health value between 40 and 60.

  • Start enemies with a random attack value between 10 and 14.

  • Attack damage is random, using the robot's attack value as an upper limit (for example, if the player's attack is 10, their damage range is 7-10).

Dominant language
No language data
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from MackFolds/javascript-robot-practice

All issues in MackFolds/javascript-robot-practice

Similar issues

More Game Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.