Giter Club home page Giter Club logo

jaryjay-sharnon's Introduction

jaryjay-sharnon

A command-line app 💻 that helps game masters organize data in a role playing game 🎲 called Sharnon.

My brother and I invented this game years ago — it's essentially D&D, except simpler and less random.

Features:

  • Detailed character info stored in JSON
    • Name🙂, class🧙‍♂️, equipment⚔️, known spells📜
  • Name generator
    • Randomly chooses a bunch of syllables and puts them together
  • Dice roller 🎲
Input a command ('help' to show commands): roll 8d5

Rolls: [4, 3, 5, 3, 5, 1, 5, 3]
Total: 29
  • Easily define new commands 📌
    • Format:
addCommand(new GameCommand( [command name], [argument labels], [command description], [command length], [action] ));

Command definition example:

 addCommand(new GameCommand("start", "<name>", "Start a session with a given player name", 2, args -> {
		Human player = ActorLoader.loadHuman(args[1]);
		if (player == null) {
			System.out.println("No player found with name " + args[1] + ".");
		} else {
			System.out.println("Starting session with " + player.getName() + ".");
			transitionState(new PlayState(app, player));
		}
}));

Some cool screenshots

Starting a session Describing an actor Names and equipment Adding another actor


What a neat little program, eh?

How to set up

This tutorial assumes that you have Java 1.8 or above, and Maven.

  1. Clone the repository.
  2. Navigate to the directory in your terminal.
  3. Run c.bat
  4. Run r.bat
  5. Voila! You can now use the app. Use command start <name> to begin a session. e.g. start Zey'nar

jaryjay-sharnon's People

Contributors

jaryjay avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.