Git Product home page Git Product logo

adventofcode-vlang's Introduction

adventofcode

A repository for V language solutions to Advent of Code puzzles.

Initial layout:

A directory for the year, with subdirs for each day.

Inside each day subdir, example input file for that day, and individual solutions named by the GitHub ID of the person who supplied it followed by .v to identify it as a V language file.

If you have a solution that is more complex than a single .v file, make a subdir with your GitHub ID under the appropriate year/day subdir, and place all files there.

Input file format

  1. Input file should end with file extension .input
  2. Input file should be directly copied/pasted from AoC's example input with the following standard:
    • No whitespace trimming (see Note 1 below)
    • No additional empty line
    • No personal-specific input allowed in example input file
  3. If there are multiple example inputs for different parts in a day, suffix each input file with -partX where X is part number, then follow other criteria
  4. Input file's name should relate to the corresponding AoC problem, for example: AoC 2022 Day 7 relates to unix system's file system cmd operations, therefore, you should name it filesystem.input or cmd.input

Note 1: when you add .input files, please turn off the auto trimming functionality of your editor/IDE. Some solutions require the .input files to have the exact same format that AoC uses, and trimming end lines may break them.

Note 2: there is a small script that can be used to verify that all solutions continue to work with latest V versions. You can use it by running v run verify.v in the top folder of this repository. It will produce the necessary .out files for new solutions, and you can commit them so that the CI will check that there are no regressions.

Leaderboard

Feel free to join the vlang leaderboard: 1303110-4f92d16a.

adventofcode-vlang's People

Contributors

spytheman avatar rolfschmidt avatar mvlootman avatar jalonsolov avatar chaosunity avatar hillerstorm avatar jacksonmowry avatar le0developer avatar medvednikov avatar brayevalerien avatar spaceface777 avatar verulian 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.