DEV Community

Cover image for Coding-Games: A different kind of challenge
neoan
neoan

Posted on

2 1

Coding-Games: A different kind of challenge

I remember being captivated by code-based games like elevator saga as a tool to improve and learn.

However, the missing "hackability" always bothered me, as you can only progress so far and then things feel a little stale. While there are impressive other mentions, I decided to whip up a little gamified challenge myself.

ResourceMeJS

This pure JavaScript/CSS game is approachable, hackable and open-source and I would love to get your opinion on it.

The principle

Well, it's pretty straight forward: you have to develop an algorithm that performs well under changing circumstances. To do so, you have a little online editor:
Editor
And can execute your code with the click of a button. The general goal is to mine as many resources as possible per minute before the dying sun depletes your shield. However, in order to give beginners a chance, the sun's radiation doesn't kick in before you manage to mine resources efficiently.

In order to enhance your efficiency, you can build modules with your station and attach them to your ships, build additional ships and/or cool down the shields with water.

If you are interested in improving the game, don't shy away from reaching out:

ResourceMeJS

A JavaScript idle game for coders!

Deployed @ neoan.us/game

Like it? Leave me a star

neoan.us/game

Welcome to the family business

Your wacky uncle has passed away, leaving you with his space station and mining business. Being the character he was, he controlled the business using an ancient programming language called JavaScript. Unfortunately, most of the code was lost in a sun-flare shortly before he passed away, along with his fleet. He managed to construct one ship with the remaining resources.

Can you write the code necessary to revitalize the operation and build an ever-growing fleet of mining ships?

Credits:

sound & music: https://freesound.org/

Yes, PRs are welcome!




SurveyJS custom survey software

JavaScript UI Libraries for Surveys and Forms

SurveyJS lets you build a JSON-based form management system that integrates with any backend, giving you full control over your data and no user limits. Includes support for custom question types, skip logic, integrated CCS editor, PDF export, real-time analytics & more.

Learn more

Top comments (0)

SurveyJS custom survey software

JavaScript Form Builder UI Component

Generate dynamic JSON-driven forms directly in your JavaScript app (Angular, React, Vue.js, jQuery) with a fully customizable drag-and-drop form builder. Easily integrate with any backend system and retain full ownership over your data, with no user or form submission limits.

Learn more