Skip to content

championswimmer/AdventOfCode2022

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2022

All solutions in Rust, Go, TypeScript, Python and Kotlin

Running

There is a sample run-solns.sh script that contains the commands to run all solutions.

To run solutions use this syntax

./run-solns.sh go 01 # run day 01 solution in Go
./run-solns.sh kotlin 02 # run day 02 solution in Go

The first argument can be

  • go or golang for Go
  • kt or kotlin for Kotlin
  • typescript or ts for TypeScript
  • rs or rust for Rust
  • py or python for Rust

The second argument can be a number from 01 to 25

Setup

Kotlin

The Kotlin files are run via kscript

Best way is to install via https://sdkman.io

sdk install kotlin
sdk install kscript

Rust

The Rust files are run via rust-script

First install Rust (via appropriate package manager for your OS), then install the rust-script crate.

cargo install rust-script

TypeScript

The TypeScript files are run via deno

Install Deno via appropriate package manager for your OS.

Go

The Go files are run via Go's own go run process which can run a file like a script.

Just install Go via your package manager and get going.

Python

Python scripts are run using Python 3.+

Install Python3 for your OS.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published