Giter Site home page Giter Site logo

rowanion / codechallengemaker Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 188 KB

A framework (based on Qt) for making and running code challenges that can be implemented with a plugin

License: BSD 3-Clause "New" or "Revised" License

CMake 48.11% C++ 50.77% C 1.12%

codechallengemaker's Introduction

CodeChallengeMaker

A little Qt5-app for making and running code challenges that can be implemented with a plugin

Pre-requisites

  • Qt5
  • (current version of) CMake
  • a compiler that can compile C++17

Supports

  • Windows
  • Linux (although no VSCode launch configs are provided)

Features

  • A simple UI with an input field, an output field and a few buttons
  • An interface for writing plugins (example/ExamplePlugin serves as a template)
  • All the boilerplate for the build system, the Qt and the plugins is already there
  • The separated plugin system allows for further metrics like cycles, memory footprint and execution time (not yet implemented)
  • Note: I've put my solutions into a private submodule, so you don't get spoilers
  • This is 'just' the app and the frame for writing your own solutions

This is how the CodelChallengeMaker looks like

How to use

  • copy the example plugin into 'plugins' and rename it to match the challenge.
  • Set the name in the CMakeLists.txt as well (in project(Challenge2023-12-01_1))
  • copy the description into the resources/descriptionFile.txt (optional)
  • copy the input into the resources/inputFile.txt (optional)
  • implement your solution inside ChallengeResult ChallengePlugin::runChallenge(const QString& _pInput)
  • Open the App and click on 'Load Plugin' - select your plugin dll/so and you can execute/debug.

Future work

  • Drag and Drop for the input file (if any)
  • plugin hot-reloading & self-compiling
  • The plugin interface's external virtual execution function will not be run from outside.
    • instead there will be a surrogate function that will be run from outside and will call the virtual function
    • this will alow for isolated metrics measurement

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.