Giter VIP home page Giter VIP logo

tis-100-cxx's Introduction

TIS-100-CXX

A TIS-100 simulator and save validator

This is a validator for saves for the game TIS-100, designed to be used for the community-run leaderboard. Unlike other simulators, TIS-100-CXX includes definitions for the base game's levels and can generate suitable random tests for them.

Build instructions:

Ensure you have a C++23 compliant compiler (clang 16+, gcc 14+).

  1. clone repository
  2. update kblib submodule: git submodule update --init --recursive
  3. run cmake -B "path/to/some/build/dir" -S .
  4. run cmake --build "path/to/some/build/dir"

Run instructions:

The command-line API documented here is currently extremely basic and ad-hoc, and will be replaced soon.

If run with no arguments, TIS-100-CXX will run a very basic self-test. With the single argument generate, TIS-100-CXX will write layout and randomized input files compatible with Phlarx' tis simulator for all of TIS-100's main and second campaign's levels.

Otherwise, the first argument identifies a level by either name or id (for example, 00150 or "SELF-TEST DIAGNOSTIC" both refer to the first level of the main campaign) followed by a path to a TIS-100 source file, followed optionally by the word random, which will cause TIS-100-CXX to use a randomly generated test case.
Otherwise, it will use a hardcoded test case copied from the game. In any case, it will print whether the validation was successful or not, followed by either the score, or the reason it was not validated and how many cycles it took to fail.

tis-100-cxx's People

Contributors

killerbee13 avatar 12345ieee avatar

Watchers

 avatar  avatar

Forkers

12345ieee

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.