gitwtfhub

wtf is discipline-duel-v1?

jamesgabe/discipline-duel-v1 — explained in plain English

Analysis updated 2026-05-18

2HTMLAudience · generalComplexity · 1/5LicenseSetup · easy

TL;DR

A browser based game that turns building self discipline into a playable challenge, where you counter everyday excuses to build up resilience and future focus scores.

Mindmap

mindmap
  root((Discipline Duel))
    What it does
      Counter daily excuses
      Resilience HP score
      Future Focus score
    Tech stack
      HTML
      CSS
      JavaScript
    Use cases
      Practice countering excuses
      Track self discipline progress
      Study simple browser game code
    Audience
      General users
      Self improvement fans
    Setup
      Open in browser
      No account needed

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Practice recognizing and countering common procrastination excuses through short playable rounds.

REASON 2

Track a personal resilience and future focus score across repeated play sessions.

REASON 3

Study a simple, dependency free HTML and JavaScript game as a template for your own browser based game.

What's in the stack?

HTMLCSSJavaScript

How it stacks up

jamesgabe/discipline-duel-v1100/talk_stockalexcybernetic/playground-ai
Stars222
LanguageHTMLHTMLHTML
Last pushed2022-03-24
MaintenanceDormant
Setup difficultyeasymoderateeasy
Complexity1/53/51/5
Audiencegeneralgeneralgeneral

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · easy Time to first run · 5min
GPL v3 license: you can use and modify the code freely, but any distributed modified version must also be released under the same open license.

Wtf does this do

The Discipline Duel is a small browser based game meant to turn the idea of self discipline into something playable rather than something you just read advice about. It runs entirely inside a web browser, with nothing to install and no plugins needed. You open a page, click a start button, and the game presents you with a common excuse people use to avoid getting things done, something like feeling too tired to work. You respond with a Counter Strike, either picking a ready made reply or typing your own, and the game reacts to that choice. The game tracks two running numbers as you play. Resilience HP represents how well you bounce back after a setback, and a Future Focus Score reflects how consistently you choose long term goals over quick comfort. As you keep playing, later rounds present tougher scenarios meant to resemble real procrastination traps, and your progress across sessions is shown with simple visual feedback. Each new playthrough mixes up the excuses you face, since the game pulls from a built in library of scenarios rather than a fixed script. There is no account or sign in step. Progress is saved locally in the browser, so clearing your browser data will reset your scores. It works across desktop, tablet, and mobile browsers, as long as JavaScript is turned on, and it is built with plain HTML, CSS, and JavaScript with no separate backend server. A settings panel lets you adjust the difficulty, choose between guided or free form counter strike responses, set a time limit for a session, and switch between a light or dark visual theme. The project is released under the GNU GPL version 3.0 license, which means the source code stays open and any modified versions distributed to others must also be released under the same open license.

Yoink these prompts

Prompt 1
Explain how the Resilience HP and Future Focus Score are calculated in this game's code.
Prompt 2
Show me how to add a new excuse scenario to this game's built in library.
Prompt 3
Walk me through customizing the light and dark theme styles in this project.
Prompt 4
Explain how progress is saved in the browser's local storage for this game.

Frequently asked questions

wtf is discipline-duel-v1?

A browser based game that turns building self discipline into a playable challenge, where you counter everyday excuses to build up resilience and future focus scores.

What language is discipline-duel-v1 written in?

Mainly HTML. The stack also includes HTML, CSS, JavaScript.

What license does discipline-duel-v1 use?

GPL v3 license: you can use and modify the code freely, but any distributed modified version must also be released under the same open license.

How hard is discipline-duel-v1 to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is discipline-duel-v1 for?

Mainly general.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.