Skip to content

lukap26/HttpHacksPlinko

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

Plinko Hack — Electron App

Small Electron + Vite app containing a simple input-list creator and a Plinko-style game.

This README shows how to install, run and test the app locally.

Prerequisites

  • Node.js (LTS recommended — e.g. 18+). The project uses Electron 39 and Vite plugin via Electron Forge.
  • npm (bundled with Node) or yarn/pnpm.

Install

From the project root (the folder that contains package.json):

cd /path/to/PlinkoHack/electron-app
npm install

Run (development)

Start the Electron app (will launch the renderer):

npm run start

This runs electron-forge start configured in package.json and will open the app window.

How to use the input -> plinko workflow

  1. Press "Start" on the home page.
  2. Add text into the input rows.
  3. Click the Done button. That handler will:
    • collect the non-empty input strings,
    • save them to sessionStorage under the key gameInputs, and
    • navigate to the Plinko page (plinko.html).
  4. The Plinko page reads sessionStorage.gameInputs to get the list of possible solutions and uses it at runtime.

This means you can move between pages and the list will persist during the browser session.

Notes & Troubleshooting

  • If you see input rows appearing in the Plinko page, ensure src/game.js initialization is guarded against running when the module is imported elsewhere. The project has a guard to only initialize inputs when the expected game container exists.
  • If gameInputs is not present in sessionStorage, the Plinko game falls back to an empty list (no labels). Use the DevTools method above to populate the key for testing.
  • If Electron fails to start, ensure your Node/Electron versions are compatible; try using Node 18 or 20.

Files of interest

  • src/game.js — input UI, Done button that writes sessionStorage.gameInputs.
  • src/plinko.js — reads sessionStorage.gameInputs and runs the Plinko game.
  • src/*.html — HTML pages used by the app.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors